-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,50 @@ on: | |
|
||
jobs: | ||
wasm: | ||
name: Wasm Qt5 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout submodules | ||
shell: bash | ||
run: | | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
git submodule sync --recursive | ||
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | ||
- name: Install Qt | ||
shell: bash | ||
run: | | ||
python3 -m pip install aqtinstall | ||
python3 -m aqt install --outputdir /opt 5.15.2 linux desktop wasm_32 -m qtcharts | ||
- name: Install python dependencies | ||
shell: bash | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Setup emsdk | ||
uses: mymindstorm/setup-emsdk@v7 | ||
with: | ||
version: 1.39.8 | ||
|
||
- name: Compiling | ||
shell: bash | ||
run: | | ||
export PATH=/opt/5.15.2/wasm_32/bin:$PATH | ||
./scripts/wasm_compile.sh | ||
- name: Uploading | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: WebAssembly Build | ||
path: wasm | ||
|
||
wasmQt6: | ||
name: Wasm Qt6 | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
|
@@ -56,11 +100,6 @@ jobs: | |
export PATH=/opt/6.2.1/wasm_32/bin:/opt/6.2.1/gcc_64/bin:$PATH | ||
./scripts/wasm_compile.sh | ||
- name: Uploading | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: WebAssembly Build | ||
path: wasm | ||
inspector: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
@@ -86,7 +125,7 @@ jobs: | |
|
||
ghPages: | ||
runs-on: ubuntu-20.04 | ||
needs: [wasm,inspector] | ||
needs: [wasmQt5, inspector] | ||
name: Publish Wasm on Github Pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -116,6 +155,3 @@ jobs: | |
email: [email protected] | ||
# Where static files are. | ||
build_dir: _site | ||
|
||
|
||
|