Skip to content

Commit 92ca673

Browse files
committed
Use GitHub's CI to test builds for each OS we claim to support
Testing that each way you can run the experiment builds with the right deps from scratch each time is tricky. GitHub Actions provide free unlimited minutes for exactly this kind of thing so it seems like a no-brainer [1]. [1]: https://github.com/orgs/community/discussions/70492
1 parent ad89675 commit 92ca673

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Alloy Experiments CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
bare-metal-debian:
11+
name: Bare Metal (Debian)
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
- name: Install dependencies
17+
run: ./install_deps.sh --no-cpu-gov
18+
- name: Run bare-metal build
19+
run: make bare-metal
20+
21+
bare-metal-arch:
22+
name: Bare Metal (Arch Linux)
23+
runs-on: ubuntu-latest
24+
container:
25+
image: archlinux:base
26+
options: --privileged
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
- name: Install sudo
31+
run: pacman -Sy --noconfirm sudo
32+
- name: Install dependencies
33+
run: ./install_deps.sh --no-cpu-gov
34+
- name: Run bare-metal build
35+
run: make bare-metal
36+
37+
docker-quick:
38+
name: Docker Quick Test
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout code
42+
uses: actions/checkout@v4
43+
44+
- name: Set up Docker Buildx
45+
uses: docker/setup-buildx-action@v3
46+
47+
- name: Build and run quick container
48+
run: |
49+
make run-quick
50+
51+
docker-full:
52+
name: Docker Full Test
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout code
56+
uses: actions/checkout@v4
57+
58+
- name: Set up Docker Buildx
59+
uses: docker/setup-buildx-action@v3
60+
61+
- name: Build and run full container
62+
run: |
63+
make run-full
64+

0 commit comments

Comments
 (0)