-
Notifications
You must be signed in to change notification settings - Fork 109
53 lines (50 loc) · 1.29 KB
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: C/C++ CI
on:
push:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make
run: |
make all
make -C tools/minicargo
make -C tools/testrunner
- name: save artefacts
uses: actions/upload-artifact@v2
with:
name: binaries
path: |
bin/minicargo
bin/mrustc
bin/testrunner
test:
needs: build
strategy:
fail-fast: false
matrix:
rustver: ["1.29", "1.39", "1.19", "1.54"]
runs-on: ubuntu-latest
env:
RUSTC_VERSION: ${{ matrix.rustver }}.0
MRUSTC_TARGET_VER: ${{ matrix.rustver }}
OUTDIR_SUF: -${{ matrix.rustver }}.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: avoid recompile
run: make --touch && make --touch -C tools/minicargo && make --touch -C tools/testrunner
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
with:
name: binaries
path: bin
- name: make RUSTCSRC
run: make RUSTCSRC
- name: avoid recompile 2
run: make --touch && make --touch -C tools/minicargo && make --touch -C tools/testrunner && chmod +x bin/*
- name: make test
run: make test