mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
77 lines
2.4 KiB
YAML
77 lines
2.4 KiB
YAML
name: CI macOS
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.yml'
|
|
- '!**/macos_ci.yml'
|
|
- 'cmd/tools/**'
|
|
- '!cmd/tools/builders/**.v'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.yml'
|
|
- '!**/macos_ci.yml'
|
|
- 'cmd/tools/**'
|
|
- '!cmd/tools/builders/**.v'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/master' && github.sha || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
clang:
|
|
strategy:
|
|
matrix:
|
|
os: [macos-14]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 121
|
|
env:
|
|
VFLAGS: -cc clang
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build V
|
|
run: v run macos_ci.vsh build_v
|
|
- name: Test symlink
|
|
run: v run macos_ci.vsh test_symlink
|
|
- name: Test cross compilation to Linux
|
|
run: v run macos_ci.vsh test_cross_compilation
|
|
- name: Build V with -cstrict
|
|
run: v run macos_ci.vsh build_with_cstrict
|
|
- name: All code is formatted
|
|
run: v run macos_ci.vsh all_code_is_formatted
|
|
- name: Run sanitizers
|
|
run: v run macos_ci.vsh run_sanitizers
|
|
- name: Build V using V
|
|
run: v run macos_ci.vsh build_using_v
|
|
- name: Verify `v test` works
|
|
run: v run macos_ci.vsh verify_v_test_works
|
|
- name: Install iconv for encoding.iconv
|
|
run: v run macos_ci.vsh install_iconv
|
|
- name: Test pure V math module
|
|
run: v run macos_ci.vsh test_pure_v_math_module
|
|
- name: Self tests
|
|
run: v run macos_ci.vsh self_tests
|
|
- name: Build examples
|
|
run: v run macos_ci.vsh build_examples
|
|
- name: Build tetris with -autofree
|
|
run: v run macos_ci.vsh build_tetris_autofree
|
|
- name: Build blog tutorial with -autofree
|
|
run: v run macos_ci.vsh build_blog_autofree
|
|
- name: Build examples with -prod
|
|
run: v run macos_ci.vsh build_examples_prod
|
|
- name: v doctor
|
|
run: v run macos_ci.vsh v_doctor
|
|
- name: V self compilation with -usecache
|
|
run: v run macos_ci.vsh v_self_compilation_usecache
|
|
- name: V self compilation with -parallel-cc
|
|
run: v run macos_ci.vsh v_self_compilation_parallel_cc
|
|
- name: Test password input
|
|
run: v run macos_ci.vsh test_password_input
|
|
- name: Test readline
|
|
run: v run macos_ci.vsh test_readline
|
|
- name: Test vlib modules with -skip-unused
|
|
run: v run macos_ci.vsh test_vlib_skip_unused
|
|
|