Skip to content

Commit 7c1401e

Browse files
committed
Add a Github Actions workflow to test building the runner.
This should be considered experimental for now, and definitely not a substitute for local build tests!
1 parent e78b0de commit 7c1401e

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Test building the runner
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build_linux:
12+
name: Build the source distribution
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the repository
16+
uses: actions/checkout@v4
17+
- name: Generate the build system
18+
run: autoreconf --install
19+
- name: Configure the distribution
20+
run: ./configure
21+
- name: Build
22+
run: make distcheck
23+
- name: Upload source distribution
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: source_dist
27+
path: odkrun-0.4.1.tar.gz
28+
29+
build_macos:
30+
name: Build for macOS
31+
needs: build_linux
32+
runs-on: macos-15
33+
steps:
34+
- name: Download source distribution
35+
uses: actions/download-artifact@v5
36+
with:
37+
name: source_dist
38+
- name: Build
39+
run: |
40+
tar xf odkrun-0.4.1.tar.gz
41+
cd odkrun-0.4.1
42+
./configure
43+
make
44+
45+
build_windows:
46+
name: Build for Windows
47+
needs: build_linux
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Set up MinGW
51+
uses: egor-tensin/setup-mingw@v3
52+
with:
53+
platform: x64
54+
- name: Download source distribution
55+
uses: actions/download-artifact@v5
56+
with:
57+
name: source_dist
58+
- name: Build
59+
run: |
60+
tar xf odkrun-0.4.1.tar.gz
61+
cd odkrun-0.4.1
62+
./configure
63+
make

0 commit comments

Comments
 (0)