Skip to content

Commit

Permalink
WIP: Add workflow for Qt for WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Dec 29, 2022
1 parent f170a7e commit f132010
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/qt-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
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
build/*.svg
if-no-files-found: error

0 comments on commit f132010

Please sign in to comment.