forked from sellicott/tcc-riscv32
-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (66 loc) · 1.64 KB
/
build.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: build and run tests
on:
push:
branches: [ mob ]
pull_request:
branches: [ mob ]
jobs:
build-release-linux-i686-amd64:
name: tinycc master linux/amd64
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y
gcc
# see what's available in /usr/bin
- name: see what's available
run: ls -l /usr/bin
# build project amd64
- name: build amd64
run: |
./configure
make
# run tests
- name: run test_exs amd64
run: |
make test
build-release-osx-amd64:
name: tinycc master osx/amd64
runs-on: macos-11
steps:
- uses: actions/checkout@v2
# see what's available in /usr/bin
- name: see what's available
run: ls -l /usr/bin
# build project amd64
- name: build amd64
run: |
./configure
make
# run tests
- name: run test_exs amd64
run: |
make test
build-release-windows-amd64-on-windows:
name: tinycc master windows/amd64 on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
# build project amd64
- name: build amd64
run: |
msys2 -c './configure'
make
# silency failing tests
- name: silence 96_nodata_wanted
run: |
pushd .\tests\tests2
Get-Content .\96_nodata_wanted.expect -TotalCount 2 | Out-File .\96_nodata_wanted.expect2 -Encoding default
mv .\96_nodata_wanted.expect2 .\96_nodata_wanted.expect -force
popd
# run tests
- name: run test_exs amd64
run: |
make test