GitHub Actions: add webassembly.yml and update ubuntu.yml

master
Syping 1 year ago
parent aa9ac44f3e
commit 6d71d480b7
  1. 2
      .github/workflows/ubuntu.yml
  2. 28
      .github/workflows/webassembly.yml

@ -19,7 +19,7 @@ jobs:
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install cmake git gcc g++ make ninja-build -qq
sudo apt-get install cmake gcc g++ ninja-build -qq
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
- name: Build

@ -0,0 +1,28 @@
name: WebAssembly
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v11
- name: Install packages
run: |
sudo apt-get update -qq
sudo apt-get install cmake ninja-build -qq
- name: Configure CMake
run: emcmake cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Loading…
Cancel
Save