Skip to content

Commit

Permalink
Add workflow for debug
Browse files Browse the repository at this point in the history
Improve devcontainer flags for develop.
Create different container image for develop.
  • Loading branch information
networkfusion committed Dec 28, 2024
1 parent 0068699 commit 2ed8d72
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build N64FlashcartMenu ROM
if: github.ref == 'refs/heads/main'
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer
Expand All @@ -39,6 +40,30 @@ jobs:
env:
FLAGS: -DNDEBUG

- name: Build N64FlashcartMenu pre-release ROM
if: github.ref == 'refs/heads/develop'
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
cacheFrom: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
push: ${{ github.repository_owner == 'Polprzewodnikowy' && 'filter' || 'never' }}
runCmd: |
make all -j
env:
FLAGS: -DNDEBUG -DBETA_SETTINGS

- name: Build N64FlashcartMenu Debug ROM
if: github.ref == 'refs/heads/debug'
uses: devcontainers/[email protected]
with:
imageName: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
cacheFrom: ghcr.io/polprzewodnikowy/n64flashcartmenu-devcontainer-develop
push: 'never'
runCmd: |
make all -j
env:
FLAGS: -DDEBUG -DBETA_SETTINGS

- name: Upload artifact (Standard ROM)
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 2ed8d72

Please sign in to comment.