-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add workflow for Qt for WebAssembly
- Loading branch information
1 parent
f170a7e
commit 29d8890
Showing
1 changed file
with
56 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build for Qt for WebAssembly | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Setup cache | ||
id: cache-system-libraries | ||
uses: actions/cache@v2 | ||
with: | ||
path: 'emsdk-cache' | ||
key: 'emsdk-1.39.8' | ||
|
||
- name: Install emscripten | ||
uses: mymindstorm/setup-emsdk@v11 | ||
with: | ||
version: 1.39.8 | ||
actions-cache-folder: 'emsdk-cache' | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@43ec12788e42f375acfcb2cec059edfb9572fbaa # v3 | ||
with: | ||
version: '5.15.2' | ||
host: 'linux' | ||
target: 'desktop' | ||
arch: 'wasm_32' | ||
cache: true | ||
|
||
- name: Build firebird | ||
run: | | ||
mkdir build | ||
cd build | ||
qmake .. | ||
make -j4 | ||
- name: Upload zip | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: firebird-emu-wasm | ||
path: | | ||
build/*.html | ||
build/*.js | ||
build/*.wasm | ||
if-no-files-found: error |