Skip to content

Commit

Permalink
Run only the Build project (compile) step in a debian-djgpp conta…
Browse files Browse the repository at this point in the history
…iner
  • Loading branch information
volkertb committed Jan 21, 2024
1 parent 02023eb commit 5b74172
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/01-build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,15 @@ permissions:
jobs:
release-job:
runs-on: ubuntu-latest
container:
image: ghcr.io/volkertb/debian-djgpp:v0.3
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: src
- name: Build project
run: |
cd $GITHUB_WORKSPACE/src
test -f main.c
make CC=gcc CXX=g++
test -f output/sbemu.exe
uses: docker://ghcr.io/volkertb/debian-djgpp:v0.2
with:
entrypoint: src/scripts/build-in-container.sh
- name: Build FreeDOS SBEMU USB image
run: |
$GITHUB_WORKSPACE/src/scripts/build-release-artifacts.sh $GITHUB_WORKSPACE/src/output/sbemu.exe $GITHUB_WORKSPACE/
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/02-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
uses: actions/checkout@v3
- name: shellcheck shell scripts
run: |
shellcheck scripts/build-in-container.sh
shellcheck scripts/build-release-artifacts.sh
shellcheck test/run_cicd_dos.sh
build:
Expand Down
5 changes: 5 additions & 0 deletions scripts/build-in-container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd src || exit 1
test -f main.c
make CC=gcc CXX=g++
test -f output/sbemu.exe

0 comments on commit 5b74172

Please sign in to comment.