forked from samdze/playdate-nim
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
64 additions
and
72 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,34 @@ | ||
name: Common build setup | ||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Git safe directory | ||
shell: bash | ||
run: git config --global --add safe.directory "$(pwd)" | ||
|
||
# Some of the apt dependencies require input from the installer. This disables those | ||
# prompts so we can do a headless install | ||
- name: Force non-interactive apt installations | ||
shell: bash | ||
run: echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
||
- name: Update Apt dependencies | ||
shell: bash | ||
run: apt-get update | ||
|
||
- name: Install apt dependencies | ||
shell: bash | ||
run: apt-get install -y libpng16-16 gcc-arm-none-eabi wget | ||
|
||
- name: Download playdate SDK | ||
shell: bash | ||
run: wget -qO- https://download.panic.com/playdate_sdk/linux/playdatesdk-latest.tar.gz | tar xvz | ||
|
||
- name: Set PLAYDATE_SDK_PATH | ||
shell: bash | ||
run: echo "PLAYDATE_SDK_PATH=$(readlink -f $(find PlaydateSDK-* -maxdepth 0 -type d))" >> "$GITHUB_ENV" | ||
|
||
- name: Locally publish playdate nimble package | ||
shell: bash | ||
run: nimble develop |
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