Let's try adding github actions

This commit is contained in:
Will Toohey 2026-03-07 12:48:44 +10:00
parent 24d53f37f3
commit 7542c02444
2 changed files with 34 additions and 1 deletions

33
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build
on:
push:
branches: [master]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: docker
load: true
tags: layeredfs/deps
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build
run: docker run --rm -v "$PWD:/work" layeredfs/deps bash build.sh
- name: Test
run: docker run --rm -v "$PWD:/work" layeredfs/deps bash test.sh
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

View File

@ -4,7 +4,7 @@ RUN set -eux; \
dpkg --add-architecture i386; \
apt-get update -qq; \
DEBIAN_FRONTEND="noninteractive" apt-get install -qqy --no-install-recommends \
meson jq wine wine32; \
meson jq python3-pefile python3-requests wine wine32 wine64; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/*;