mirror of
https://github.com/widberg/bff
synced 2026-08-23 14:26:03 -04:00
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:
parent
48f41568c3
commit
48f414147e
4 changed files with 36 additions and 5 deletions
11
.github/workflows/build-wasm.yml
vendored
11
.github/workflows/build-wasm.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
17
.github/workflows/nightly-release.yml
vendored
17
.github/workflows/nightly-release.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue