File tree Expand file tree Collapse file tree 1 file changed +47
-8
lines changed Expand file tree Collapse file tree 1 file changed +47
-8
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [ "main" ]
66 pull_request :
7- branches : [ "main " ]
7+ branches : [ "* " ]
88
99env :
1010 CARGO_TERM_COLOR : always
1111
1212jobs :
13- build :
13+ required :
14+ name : Required
15+ needs :
16+ - ci
17+ runs-on : ubuntu-20.04
18+ steps :
19+ - name : Check results
20+ run : |
21+ [[ ${{ needs.ci.result }} == 'success' ]] || exit 1;
1422
15- runs-on : ubuntu-latest
23+ ci :
24+ name : CI
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ os :
29+ - ubuntu-20.04
30+ - macos-12
31+ php-version :
32+ - " 8.1"
33+ - " 8.2"
34+ - " 8.3"
1635
36+ runs-on : ${{ matrix.os }}
1737 steps :
18- - uses : actions/checkout@v4
19- - name : Build
20- run : cargo build --verbose
21- - name : Run tests
22- run : cargo test --verbose
38+ - name : Checkout
39+ uses : actions/checkout@v2
40+
41+ - name : Install libclang for Linux
42+ if : matrix.os == 'ubuntu-20.04'
43+ run : sudo apt-get install -y llvm-10-dev libclang-10-dev
44+
45+ - name : Setup libclang for Macos
46+ if : matrix.os == 'macos-12'
47+ run : |
48+ brew install llvm@13
49+ echo "LIBCLANG_PATH=$(brew --prefix llvm@13)/lib" >> $GITHUB_ENV
50+
51+ - name : Setup PHP
52+ uses : shivammathur/setup-php@v2
53+ with :
54+ php-version : ${{ matrix.php-version }}
55+ tools : php-config
56+
57+ - name : Build
58+ run : cargo build --verbose
59+
60+ - name : Run tests
61+ run : cargo test --verbose
You can’t perform that action at this time.
0 commit comments