Skip to content

V1.0

V1.0 #458

Workflow file for this run

name: "ci"
on:
workflow_dispatch:
release:
types:
- created
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
strategy:
matrix:
platform: [desktop, web]
runs-on: [ubuntu-22.04]
env:
# Those are read by rake script
BUILD_TYPE: release # release|debug
BUILD_DIR: ./out
PLATFORM: ${{ matrix.platform }} # dektop|web
VERBOSE: true
NDBL_SKIP_GUI_TEST: 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
- name: Build
if: env.PLATFORM == 'web'
shell: bash
run: source libs/emsdk/emsdk_env.sh && rake --multitask ndbl:build
- name: Build
if: env.PLATFORM == 'desktop'
shell: bash
run: rake --multitask build
- name: Test
if: env.PLATFORM == 'desktop'
shell: bash
run: rake test
- name: Binary Artifact
uses: actions/upload-artifact@v4
with:
name: nodable-${{ env.PLATFORM }}-${{ env.BUILD_TYPE }}
path: ./out/bin/