Update build.yml
This commit is contained in:
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -10,15 +10,14 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Use the official devkitPro container with devkitA64 + devkitARM preinstalled
|
|
||||||
container:
|
container:
|
||||||
image: devkitpro/devkita64:latest
|
image: devkitpro/devkitpro-ci:latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Verify environment
|
# Verify toolchain
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Check toolchain
|
- name: Check environment
|
||||||
run: |
|
run: |
|
||||||
echo "DEVKITPRO = $DEVKITPRO"
|
echo "DEVKITPRO = $DEVKITPRO"
|
||||||
aarch64-none-elf-gcc --version
|
aarch64-none-elf-gcc --version
|
||||||
@@ -28,6 +27,13 @@ jobs:
|
|||||||
hactool --help >/dev/null
|
hactool --help >/dev/null
|
||||||
zip --version >/dev/null
|
zip --version >/dev/null
|
||||||
|
|
||||||
|
# -------------------------------------------------
|
||||||
|
# Get short commit SHA for naming
|
||||||
|
# -------------------------------------------------
|
||||||
|
- name: Set commit SHA
|
||||||
|
id: vars
|
||||||
|
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Clone Atmosphère
|
# Clone Atmosphère
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
@@ -68,11 +74,14 @@ jobs:
|
|||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Package dist folder as ZIP
|
# Package dist folder as ZIP with commit SHA
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Package dist
|
- name: Package dist
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: zip -r horizon-oc-zeus-dist.zip dist
|
run: |
|
||||||
|
ZIP_NAME="horizon-oc-zeus-dist-${SHORT_SHA}.zip"
|
||||||
|
zip -r "$ZIP_NAME" dist
|
||||||
|
echo "ZIP_NAME=$ZIP_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Upload ZIP artifact
|
# Upload ZIP artifact
|
||||||
@@ -81,4 +90,4 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: horizon-oc-zeus-dist
|
name: horizon-oc-zeus-dist
|
||||||
path: horizon-oc/horizon-oc-zeus-dist.zip
|
path: horizon-oc/${{ env.ZIP_NAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user