Skip to content

Commit 36fba91

Browse files
committed
Update workflows
1 parent cd66671 commit 36fba91

2 files changed

Lines changed: 41 additions & 19 deletions

File tree

.github/workflows/docs.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
on:
2-
- push
1+
name: Deploy Docs
2+
on: [push, workflow_dispatch]
33

44
jobs:
55
build-docs:
6-
with:
7-
os: ubuntu-24.04
8-
racket-variant: 'CS'
9-
racket-version: '9.0'
10-
runs-on: ${{ inputs.os }}
6+
strategy:
7+
matrix:
8+
os: [ubuntu-24.04]
9+
racket-variant: ['CS']
10+
racket-version: ['9.0']
11+
runs-on: ${{ matrix.os }}
1112
name: Build and deploy docs
1213

1314
steps:
@@ -20,8 +21,8 @@ jobs:
2021
with:
2122
architecture: 'x64'
2223
distribution: 'full'
23-
variant: ${{ inputs.racket-variant }}
24-
version: ${{ inputs.racket-version }}
24+
variant: ${{ matrix.racket-variant }}
25+
version: ${{ matrix.racket-version }}
2526

2627
- name: Install clang
2728
run: |
@@ -45,7 +46,7 @@ jobs:
4546
~/.cache/racket
4647
~/.local/share/racket
4748
~/Library/Caches/Racket
48-
key: racket-${{ inputs.racket-variant }}-${{ inputs.racket-version }}-${{ inputs.os }}
49+
key: racket-${{ matrix.racket-variant }}-${{ matrix.racket-version }}-${{ matrix.os }}
4950

5051
- name: Install a86 package
5152
run: |
@@ -76,7 +77,9 @@ jobs:
7677
name: github-pages
7778
url: ${{ steps.deployment.outputs.page_url }}
7879
if: github.ref == 'refs/heads/main'
80+
7981
steps:
82+
8083
- name: Deploy to GitHub Pages
8184
id: deployment
8285
uses: actions/deploy-pages@v4

.github/workflows/push.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,57 @@
1-
on:
2-
- push
1+
name: Build and Test
2+
on: [push, workflow_dispatch]
33

44
jobs:
55
build-and-test:
6-
runs-on: ${{ matrix.os }}
76
strategy:
87
matrix:
98
os: [ubuntu-22.04, ubuntu-24.04]
109
racket-variant: ['CS']
11-
racket-version: ['8.6', '8.8', '8.10', '8.14', '8.18']
12-
name: Test on Racket ${{ matrix.racket-variant }} ${{ matrix.racket-version }} on ${{ matrix.os }}
10+
racket-version: ['8.6', '8.10', '8.14', '8.18', 'stable', 'current']
11+
runs-on: ${{ matrix.os }}
12+
name: OS ${{ matrix.os }} / Racket ${{ matrix.racket-version }}
13+
1314
steps:
15+
1416
- name: Checkout
1517
uses: actions/checkout@main
16-
- name: Install nasm
17-
run: sudo apt-get install nasm
18+
1819
- name: Install Racket
1920
uses: Bogdanp/setup-racket@v1.14
2021
with:
2122
architecture: 'x64'
2223
distribution: 'full'
2324
variant: ${{ matrix.racket-variant }}
2425
version: ${{ matrix.racket-version }}
26+
27+
- name: Install clang
28+
run: |
29+
sudo apt install -y clang libssl-dev
30+
2531
- name: Version info
2632
run: |
27-
nasm --version
33+
clang --version
2834
gcc --version
35+
36+
- name: Cache Racket packages
37+
uses: actions/cache@v4
38+
with:
39+
path: |
40+
~/.racket
41+
~/.cache/racket
42+
~/.local/share/racket
43+
~/Library/Caches/Racket
44+
key: racket-${{ matrix.racket-variant }}-${{ matrix.racket-version }}-${{ matrix.os }}
45+
2946
- name: Install a86 package
3047
run: |
31-
raco pkg install -D ../a86/
48+
raco pkg install --no-docs ../a86/
49+
3250
- name: Install langs package
3351
run: |
3452
# This *should* use the locally installed a86
3553
raco pkg install --auto 'https://github.com/cmsc430/langs.git?#main'
54+
3655
- name: Run tests
3756
run: |
3857
xvfb-run raco test -p a86

0 commit comments

Comments
 (0)