Skip to content

Commit

Permalink
Fix workflow for desktop deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Nov 22, 2024
1 parent 0e414d8 commit 234808c
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/desktop_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ jobs:
- name: Run general tests
run: ./runtests.sh --general
working-directory: VortexEngine/tests
- name: Upload Vortex Binary and Library Artifacts
uses: actions/upload-artifact@v4
with:
name: test-artifacts
path: |
VortexEngine/VortexLib/vortex.a
VortexEngine/VortexCLI/vortex
wasm:
needs: [setup, test]
Expand All @@ -96,6 +104,13 @@ jobs:
export VORTEX_VERSION_NUMBER=${{ needs.setup.outputs.vortex_version_number }}
make -j wasm
working-directory: VortexEngine/VortexLib
- name: Upload WASM Files as Artifacts
uses: actions/upload-artifact@v4
with:
name: wasm-artifacts
path: |
VortexEngine/VortexLib/VortexLib.wasm
VortexEngine/VortexLib/VortexLib.js
docs:
needs: [setup, test, wasm]
Expand Down Expand Up @@ -127,18 +142,25 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/desktop'
steps:
- uses: actions/checkout@v4
- name: Download test build artifacts
uses: actions/download-artifact@v4
with:
name: test-artifacts
- name: Download wasm build artifacts
uses: actions/download-artifact@v4
with:
name: wasm-artifacts
- name: Collect files for desktop library
run: |
mkdir -p build/desktop-library
mkdir -p desktop-library
# Copy necessary files to the build directory
cp VortexEngine/VortexLib/vortex.a build/desktop-library/
cp VortexEngine/VortexLib/VortexLib.wasm build/desktop-library/
cp VortexEngine/VortexLib/VortexLib.js build/desktop-library/
cp VortexEngine/VortexCLI/vortex build/desktop-library/
cp vortex.a build/desktop-library/
cp VortexLib.wasm build/desktop-library/
cp VortexLib.js build/desktop-library/
cp vortex build/desktop-library/
- name: Create zip archive for desktop library
run: |
cd build/desktop-library
cd desktop-library
zip -r VortexDesktopLibrary-${{ needs.setup.outputs.vortex_version_number }}.zip *
mv VortexDesktopLibrary-${{ needs.setup.outputs.vortex_version_number }}.zip ../
- name: Upload Desktop Library to Vortex Community
Expand Down

0 comments on commit 234808c

Please sign in to comment.