Skip to content

Commit 580bc27

Browse files
committed
Build example test release for configure/make tests
1 parent 0a853fe commit 580bc27

File tree

2 files changed

+59
-25
lines changed

2 files changed

+59
-25
lines changed

.github/workflows/autoconf-check-different-distro.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/autoconf-check.yml

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,53 @@ on:
77
- '[0-9]+.[0-9]+'
88

99
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: domjudge/gitlabci:24.04
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v3
17+
- name: Create the distribution tarball
18+
run: |
19+
make dist
20+
cd ..
21+
mv domjudge release
22+
mkdir domjudge #Workdir for next steps
23+
tar -cf release.tar release
24+
gzip -9 release.tar
25+
mv release.tar.gz domjudge/
26+
- name: Upload Artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
compression-level: 0
30+
name: test-tarball
31+
path: ${{ github.workspace }}/release.tar.gz
32+
33+
redhat-family:
34+
needs: build
35+
strategy:
36+
matrix:
37+
version: [latest]
38+
os: [fedora]
39+
runs-on: ubuntu-latest
40+
container:
41+
image: ${{ matrix.os }}:${{ matrix.version }}
42+
steps:
43+
- name: Download Artifact
44+
uses: actions/download-artifact@v4
45+
with:
46+
name: test-tarball
47+
- name: Install git so we get the .github directory
48+
run: dnf install -y git
49+
- name: Unpack the "Release" tarball
50+
run: tar xvf release.tar.gz
51+
- name: Setup image and run bats tests
52+
working-directory: release
53+
run: .github/jobs/configure-checks/setup_configure_image.sh
54+
1055
debian-family:
56+
needs: build
1157
strategy:
1258
matrix:
1359
version: [jammy, focal, rolling]
@@ -28,8 +74,19 @@ jobs:
2874
container:
2975
image: ${{ matrix.os }}:${{ matrix.version }}
3076
steps:
77+
- name: Download Artifact
78+
uses: actions/download-artifact@v4
79+
with:
80+
name: test-tarball
3181
- name: Install git so we get the .github directory
32-
run: apt-get update; apt-get install -y git
33-
- uses: actions/checkout@v4
82+
run: |
83+
apt-get update
84+
apt-get install -y git
85+
- name: Unpack the "Release" tarball
86+
run: |
87+
ls -atrl
88+
tar xvf release.tar.gz
3489
- name: Setup image and run bats tests
90+
working-directory: release
3591
run: .github/jobs/configure-checks/setup_configure_image.sh
92+

0 commit comments

Comments
 (0)