Skip to content

Commit

Permalink
fix wasm in build.yml
Browse files Browse the repository at this point in the history
Signed-off-by: swurl <[email protected]>
  • Loading branch information
crueter committed Dec 28, 2024
1 parent 91fb6c5 commit 76762bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,19 +231,23 @@ jobs:
# UPLOAD BUILDS
##

- name: Fix WASM index.html
- name: Fix WASM files
if: matrix.qt_arch == 'wasm_singlethread'
shell: bash
run: |
cd ${{ env.BUILD_DIR }}
cp Scouter.html index.html
mkdir ../wasm
mv Scouter.html index.html
cp {Scouter,qtloader}.js index.html Scouter.wasm ../wasm
cp program_info/QFRCScouter.svg ../wasm/qtlogo.svg
- name: Upload Pages WASM
if: matrix.qt_arch == 'wasm_singlethread'
uses: actions/[email protected]
with:
path: ${{ env.BUILD_DIR }}
retention-days: 14
path: wasm
retention-days: 365

- name: Deploy Pages WASM
if: matrix.qt_arch == 'wasm_singlethread'
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/trigger_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ jobs:
tar -czf QFRCScouter-${{ env.VERSION }}.tar.gz QFRCScouter-${{ env.VERSION }}
mv QFRCScouter-Android*/*.apk QFRCScouter-Android-${{ env.VERSION }}.apk
mkdir artifact html
tar xf artifact.tar -C artifact
cd artifact
cp {Scouter,qtloader}.js index.html qtlogo.svg Scouter.wasm ../html
cd ..
tar xf github-pages/artifact.tar -C wasm
zip -r QFRCScouter-Web-${{ env.VERSION }}.zip html/*
zip -r QFRCScouter-Web-${{ env.VERSION }}.zip wasm/*
- name: Create release
id: create_release
Expand Down

0 comments on commit 76762bd

Please sign in to comment.