Skip to content

Commit 3b1e91d

Browse files
committed
Let CI build in vanilla Ubuntu container
1 parent fee4284 commit 3b1e91d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
name: ${{ matrix.ARCH }}
1313
runs-on: ubuntu-latest
1414

15+
# running in a container using a standard image instead of the GitHub worker environment makes sure the process is reproducible elsewhere
16+
# latest = latest LTS
17+
container: ubuntu:latest
18+
1519
env:
1620
ARCH: ${{ matrix.ARCH }}
1721
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
@@ -25,22 +29,22 @@ jobs:
2529
if: matrix.ARCH == 'x86_64'
2630
run: |
2731
sudo apt-get update
28-
sudo apt-get install -y gcovr libmagic-dev libjpeg-dev libpng-dev libboost-filesystem-dev libboost-regex-dev cimg-dev qt5-default qtdeclarative5-dev-tools nlohmann-json3-dev
32+
sudo apt-get install -y build-essential cmake git gcovr libmagic-dev libjpeg-dev libpng-dev libboost-filesystem-dev libboost-regex-dev cimg-dev qt5-default qtdeclarative5-dev-tools nlohmann-json3-dev qml-module-qtquick2 patchelf wget
2933
3034
- name: Install dependencies (i386)
3135
if: matrix.ARCH == 'i386'
3236
run: |
3337
sudo dpkg --add-architecture i386
3438
sudo apt-get update
35-
sudo apt-get install -y gcovr libmagic-dev:i386 libjpeg-dev:i386 libpng-dev:i386 libboost-filesystem-dev:i386 libboost-regex-dev:i386 cimg-dev nlohmann-json3-dev gcc-multilib g++-multilib libfuse2:i386
39+
sudo apt-get install -y build-essential cmake git gcovr libmagic-dev:i386 libjpeg-dev:i386 libpng-dev:i386 libboost-filesystem-dev:i386 libboost-regex-dev:i386 cimg-dev nlohmann-json3-dev gcc-multilib g++-multilib libfuse2:i386 patchelf wget
3640
3741
- name: Build AppImage
38-
run: bash -ex ci/build.sh
42+
run: bash ci/build.sh
3943

4044
- name: Test AppImage
4145
if: matrix.ARCH != 'i386'
4246
run: |
43-
bash -ex ci/test.sh linuxdeploy-plugin-qt-"$ARCH".AppImage
47+
env CI=1 bash ci/test.sh linuxdeploy-plugin-qt-"$ARCH".AppImage
4448
4549
- name: Archive artifacts
4650
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)