Modify build.yml to set commit SHA and dist
Updated the GitHub Actions workflow to include a distribution file with the commit SHA.
This commit is contained in:
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Minimal devkitA64 container, apparently dkp-toolchain isn't needed?
|
# Minimal devkitA64 container
|
||||||
container:
|
container:
|
||||||
image: devkitpro/devkita64:20251231
|
image: devkitpro/devkita64:20251231
|
||||||
|
|
||||||
@@ -47,9 +47,12 @@ jobs:
|
|||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Get short commit SHA
|
# Get short commit SHA
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Set commit SHA
|
- name: Set commit SHA & dist
|
||||||
id: vars
|
id: vars
|
||||||
run: echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
|
run: |
|
||||||
|
echo "SHORT_SHA=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
|
||||||
|
echo $SHORT_SHA > dist/.commit
|
||||||
|
echo $GITHUB_SHA >> dist/.commit
|
||||||
|
|
||||||
- name: Clone Atmosphere
|
- name: Clone Atmosphere
|
||||||
run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt)
|
run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt)
|
||||||
|
|||||||
Reference in New Issue
Block a user