File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build and Test
22
3- on : [push]
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - staging
8+ - trying
49
510jobs :
6- # The `test` job.
711 test :
8- name : Test
12+ name : Build and Test
913
1014 strategy :
1115 matrix :
12- # The job runs on 2 different OS.
13- build : [linux, macos]
14- include :
15- - build : linux
16- os : ubuntu-latest
17- cc : clang-6.0
18- - build : macos
19- os : macos-latest
20- cc : clang
21- # As soon as one job fails in the matrix, all the other
22- # in-progress jobs are canceled.
16+ target :
17+ - id : ' linux-amd64'
18+ os : ' ubuntu-18.04'
19+ cc : ' clang-6.0'
20+ - id : ' darwin-amd64'
21+ os : ' macos-latest'
22+ cc : ' clang'
23+ go : [1.14]
2324 fail-fast : true
2425
25- runs-on : ${{ matrix.os }}
26+ runs-on : ${{ matrix.target. os }}
2627
2728 steps :
2829 - name : Check out code
2930 uses : actions/checkout@v2
3031
32+ - name : Set up Rust
33+ uses : actions-rs/toolchain@v1
34+ with :
35+ toolchain : stable
36+ default : true
37+ override : true
38+
39+ - uses : Swatinem/rust-cache@v1
40+
3141 - name : Set up Go
3242 uses : actions/setup-go@v1
3343 with :
34- go-version : ' 1.14'
35-
36- - name : Set up Rust
37- shell : bash
38- run : |
39- curl https://sh.rustup.rs -sSf | sh -s -- -y
44+ go-version : ${{ matrix.go }}
4045
4146 - name : Set up just
4247 shell : bash
@@ -47,12 +52,16 @@ jobs:
4752 - name : Run all the tests
4853 shell : bash
4954 run : |
50- CC=${{ matrix.cc }} just test
55+ just test
56+ env :
57+ CC : ${{ matrix.target.cc }}
5158
5259 - name : Run all the examples
5360 shell : bash
5461 run : |
55- CC=${{ matrix.cc }} just examples
62+ just examples
63+ env :
64+ CC : ${{ matrix.target.cc }}
5665# Skipped for now because of Github banning the API request from actions.
5766# You can find more info in this PR: https://github.com/wasmerio/wasmer-go/pull/118#issuecomment-588487544
5867# - name: Test bazel build
Original file line number Diff line number Diff line change 11status = [
2- " Test (ubuntu-latest)" ,
3- " Test (macos-latest)" ,
2+ " Build and Test %" ,
43]
5- required_approvals = 0
6- timeout_sec = 900
4+ required_approvals = 1
5+ timeout_sec = 7200
76delete_merged_branches = true
You can’t perform that action at this time.
0 commit comments