-
Notifications
You must be signed in to change notification settings - Fork 987
101 lines (101 loc) · 3.24 KB
/
ci.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
name: CI
on: [push, pull_request]
jobs:
ci:
strategy:
fail-fast: false
matrix:
config:
- machine: tpb
os: ubuntu-22.04
configure: --pb --threads --enable-libffi
test: test-some-fast
- machine: a6osx
os: macos-12
- machine: ta6osx
os: macos-12
- machine: arm64osx
os: macos-14
- machine: tarm64osx
os: macos-14
- machine: i3le
os: ubuntu-22.04
- machine: ti3le
os: ubuntu-22.04
- machine: a6le
os: ubuntu-22.04
- machine: ta6le
os: ubuntu-22.04
configure: CFLAGS+=-std=gnu89
- machine: ta6le
os: ubuntu-22.04
variant: reboot
configure: -m=ta6le --force
make: re.boot SCHEME="chezscheme"
test: test-some-fast
- machine: i3nt
os: windows-2022
toolchain: vs
- machine: ti3nt
os: windows-2022
toolchain: vs
- machine: a6nt
os: windows-2022
toolchain: vs
- machine: ta6nt
os: windows-2022
toolchain: vs
- machine: ta6nt
os: windows-2022
toolchain: gcc
configure: CFLAGS+=-std=gnu89
runs-on: ${{ matrix.config.os }}
env:
TARGET_MACHINE: ${{ matrix.config.machine }}
TOOLCHAIN: ${{ matrix.config.toolchain }}
VARIANT: ${{ matrix.config.variant }}
CONFIGURE_ARGS: ${{ matrix.config.configure }}
MAKE_ARGS: ${{ matrix.config.make }}
TEST_TARGET: ${{ matrix.config.test }}
defaults:
run:
shell: bash
working-directory: ${{ github.workspace }}
steps:
- name: Configure git on Windows
if: ${{ runner.os == 'Windows' }}
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup 32-bit Linux
if: ${{ endsWith(matrix.config.machine, 'i3le') }}
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install gcc-multilib lib32ncurses5-dev
- name: Setup existing Chez Scheme for reboot
if: ${{ startsWith(matrix.config.make, 're.boot') }}
run: |
sudo apt-get update
sudo apt-get install chezscheme
- name: Build Chez Scheme
run: .github/workflows/build.sh
- name: Run tests
timeout-minutes: 60
run: .github/workflows/test.sh
- name: Archive workspace
if: always()
run: tar -c -h -z -f $TARGET_MACHINE$TOOLCHAIN$VARIANT.tgz $TARGET_MACHINE
- name: Upload archive
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.machine }}${{ matrix.config.toolchain }}${{ matrix.config.variant }}
path: ${{ matrix.config.machine }}${{ matrix.config.toolchain }}${{ matrix.config.variant }}.tgz
- name: Check test results
run: |
cat $TARGET_MACHINE/mats/summary
diff -q .github/workflows/summary${{ matrix.config.test }} $TARGET_MACHINE/mats/summary