Next release #397
Workflow file for this run
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
name: "ci" | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- created | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: [desktop, web] | |
build_type: [release] | |
runs-on: [ubuntu-22.04] | |
env: | |
# Those are read by rake script | |
BUILD_TYPE: ${{ matrix.build_type }} # release|debug | |
BUILD_DIR: ./out | |
TARGET: ${{ matrix.target }} # dektop|web | |
VERBOSE: true | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions` | |
- name: Install Dependencies | |
shell: bash | |
run: rake install --trace && source "libs/emsdk/emsdk_env.sh" | |
- name: Build | |
shell: bash | |
run: rake build --trace | |
- name: Test | |
shell: bash | |
run: rake test --trace | |
- name: Binary Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nodable-${{ env.TARGET }}-${{ env.BUILD_TYPE }} | |
path: ./out/bin/ |