-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (42 loc) · 1.35 KB
/
webassembly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: WebAssembly
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
ubuntu-qt6-wasm:
name: Qt 6.6.3 / Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- name: Clone the repository
uses: actions/checkout@v3
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.6.3
qt_arch: wasm_singlethread
use_qt6: ON
modules: qtwebsockets
additional_cmake_args: -DCMAKE_INSTALL_PREFIX='${{ github.workspace }}/install-shvspy'
- name: Build
run: cmake --build '${{github.workspace}}/build' --parallel "$(nproc)"
shell: bash
- name: Consolidate WebAssembly artifacts
run: |
mkdir gh-sources
cp '${{github.workspace}}'/build/shvspy/*.js '${{github.workspace}}'/build/shvspy/*.wasm '${{github.workspace}}'/build/shvspy/*.html gh-sources/
shell: bash
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'gh-sources/'
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2