Skip to content

Commit 2ed8d72

Browse files
committed
Add workflow for debug
Improve devcontainer flags for develop. Create different container image for develop.
1 parent 0068699 commit 2ed8d72

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
password: ${{ secrets.GITHUB_TOKEN }}
2929

3030
- name: Build N64FlashcartMenu ROM
31+
if: github.ref == 'refs/heads/main'
3132
uses: devcontainers/ci@v0.3
3233
with:
3334
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer
@@ -39,6 +40,30 @@ jobs:
3940
env:
4041
FLAGS: -DNDEBUG
4142

43+
- name: Build N64FlashcartMenu pre-release ROM
44+
if: github.ref == 'refs/heads/develop'
45+
uses: devcontainers/ci@v0.3
46+
with:
47+
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
48+
cacheFrom: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
49+
push: ${{ github.repository_owner == 'Polprzewodnikowy' && 'filter' || 'never' }}
50+
runCmd: |
51+
make all -j
52+
env:
53+
FLAGS: -DNDEBUG -DBETA_SETTINGS
54+
55+
- name: Build N64FlashcartMenu Debug ROM
56+
if: github.ref == 'refs/heads/debug'
57+
uses: devcontainers/ci@v0.3
58+
with:
59+
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
60+
cacheFrom: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
61+
push: 'never'
62+
runCmd: |
63+
make all -j
64+
env:
65+
FLAGS: -DDEBUG -DBETA_SETTINGS
66+
4267
- name: Upload artifact (Standard ROM)
4368
uses: actions/upload-artifact@v4
4469
with:

0 commit comments

Comments
 (0)