forked from 1b-agent/opencadstudio-upstream
Verify wasm target in Nix CI
Co-authored-by: dichhead <[email protected]>
This commit is contained in:
1 parent
152b8e1042
commit
9e284c7e61
3 files changed
+6
-1
No files matched your search
@@ -38,6 +38,8 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/setup-nix
|
||||
- name: Verify wasm target
|
||||
run: nix develop --command rustc --print target-libdir --target wasm32-unknown-unknown > /dev/null
|
||||
- name: Build web bundle
|
||||
run: nix develop --command trunk build --locked --release --public-url /app/ --dist dist/app --html-output index.html web-app.html
|
||||
- name: Validate website assembly
|
||||
|
||||
@@ -89,6 +89,9 @@ jobs:
|
||||
)
|
||||
nix develop --command bash --noprofile --norc -euo pipefail -c "$SCRIPT"
|
||||
|
||||
- name: Verify wasm target
|
||||
run: nix develop --command rustc --print target-libdir --target wasm32-unknown-unknown > /dev/null
|
||||
|
||||
- name: Build web bundle
|
||||
run: nix develop --command trunk build --locked --release --public-url /app/ --dist dist/app --html-output index.html web-app.html
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SNAP: ${{ steps.snap_asset.outputs.snap }}
|
||||
run: nix develop --command gh release upload "${{ env.RELEASE_TAG }}" "$SNAP" --clobber
|
||||
run: nix develop --command gh release upload "${{ env.RELEASE_TAG }}" "$SNAP" --clobber --repo ${{ github.repository }}
|
||||
|
||||
- name: Upload snap as workflow artifact
|
||||
if: env.RELEASE_TAG == ''
|
||||
|
||||
Reference in new issue
Block a user