-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sylvain Gadrat
committed
Sep 22, 2023
1 parent
446ae78
commit ec11dcf
Showing
5 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ "build-deps" ] | ||
pull_request: | ||
branches: [ "build-deps" ] | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build-dep-cc65 | ||
run: deps/build-deps.d/00-cc65.sh | ||
- name: build-dep-huffmunch | ||
run: deps/build-deps.d/00-huffmunch.sh | ||
- name: build-dep-python | ||
run: FORCE_INSTALLS=1 deps/build-deps.d/00-python.sh | ||
- name: build-dep-xa65 | ||
run: deps/build-deps.d/00-xa65.sh | ||
- name: build-dep-gcc | ||
run: FORCE_INSTALLS=1 CC65_PATH=$(pwd)/deps/cc65/bin deps/build-deps.d/01-gcc.sh | ||
- name: build-stb | ||
run: XA_BIN=$(pwd)/deps/xa65-stb/xa/xa CC_BIN=$(pwd)/deps/gcc-6502-bits/prefix/bin/6502-gcc HUFFMUNCH_BIN=$(pwd)/deps/huffmunch/huffmunch XA_LST=1 ./build.sh | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: build-log | ||
if-no-files-found: ignore | ||
path: | | ||
build.log | ||
build.log.err | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: roms | ||
path: | | ||
*.nes | ||
/tmp/*.lst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
out_dir=$(readlink -f "$(dirname "$0")/..") | ||
|
||
if [ "$UID" -eq 0 -o ! -z "$FORCE_INSTALLS" ]; then | ||
sudo apt install -y python3 python3-pip python-is-python3 | ||
pip3 install -U pip | ||
|
||
if which pip > /dev/null 2>&1 ; then | ||
pip_cmd=pip | ||
else | ||
pip_cmd=pip3 | ||
fi | ||
|
||
$pip_cmd install --upgrade pillow | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters