You Know When The Trojans Got That Horse And They Were All "Yeah This is Totally A Gift" That's How Sure I Am

This commit is contained in:
widberg 2026-03-10 22:55:34 -04:00
parent 48f41568c3
commit 48f414147e
4 changed files with 36 additions and 5 deletions

View file

@ -1,6 +1,12 @@
name: Build wasm
on: [push, pull_request]
on:
push:
branches:
- "**"
tags-ignore:
- "*"
pull_request:
permissions: {}
@ -25,6 +31,9 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
with:
save-if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
lookup-only: true
- name: Download wasi-sdk
uses: suisei-cn/actions-download-file@818d6b7dc8fe73f2f924b6241f2b1134ca1377d9

View file

@ -1,6 +1,12 @@
name: Build
on: [push, pull_request]
on:
push:
branches:
- "**"
tags-ignore:
- "*"
pull_request:
permissions: {}
@ -34,6 +40,9 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
with:
save-if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
lookup-only: true
- name: Install dependencies (linux)
run: |

View file

@ -67,8 +67,21 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
git tag -f nightly "$GITHUB_SHA"
git push origin refs/tags/nightly --force
if gh api "/repos/${GITHUB_REPOSITORY}/git/ref/tags/nightly" >/dev/null 2>&1; then
gh api \
--method PATCH \
-H "Accept: application/vnd.github+json" \
"/repos/${GITHUB_REPOSITORY}/git/refs/tags/nightly" \
-F sha="$GITHUB_SHA" \
-F force=true
else
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
"/repos/${GITHUB_REPOSITORY}/git/refs" \
-F ref="refs/tags/nightly" \
-F sha="$GITHUB_SHA"
fi
- name: Replace nightly release assets
if: ${{ steps.artifact_check.outputs.found == 'true' }}

View file

@ -54,7 +54,7 @@ jobs:
BIN_EXTENSION: ${{ matrix.bin_extension || '' }}
run: |
cd ./target/release
7z a "../../../bff-${MATRIX_NAME}-${TAG_NAME}.zip" \
7z a "../../bff-${MATRIX_NAME}-${TAG_NAME}.zip" \
"bff-cli${BIN_EXTENSION}" \
"bff-gui${BIN_EXTENSION}"