Skip to content

Update GitHub Actions workflow #21

Update GitHub Actions workflow

Update GitHub Actions workflow #21

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
emscripten_version: ['3.1.52', latest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.0'
- name: Setup emsdk
run: |
git clone https://github.com/emscripten-core/emsdk
cd emsdk
./emsdk install ${{ matrix.emscripten_version }}
./emsdk activate ${{ matrix.emscripten_version }}
./emsdk construct_env
- name: Build irb
run: |
source emsdk/emsdk_env.sh
./build.sh
- if: matrix.platforms.emscripten_version != 'latest'
name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: docs
deploy:
if: github.event_name == 'push'
needs: build
permissions:
pages: write
id-token: write
actions: read
environment:
name: github-pages
url: https://mame.github.io/emirb/
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v3