Skip to content

Attempt at emscripten #8

Attempt at emscripten

Attempt at emscripten #8

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Build C program
working-directory: ${{ github.workspace }}/
run: make
emscripten:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
- name: Checkout binaries for web version
working-directory: ${{ github.workspace }}/
run: |
git clone --depth=1 https:/misterblack1/plexus-p20.git
mv plexus-p20/ROMs/U17-MERGED.BIN plexus-p20/ROMs/U15-MERGED.BIN .
gunzip < plexus-p20/disk/plexus-sanitized.img.gz > plexus-sanitized.img
- name: Get emscripten
working-directory: ${{ github.workspace }}/
run: |
git clone --depth=1 https:/emscripten-core/emsdk.git
cd emsdk; ./emsdk install latest; ./emsdk activate latest
- name: Compile for web
working-directory: ${{ github.workspace }}/
run: source ./emsdk/emsdk_env.sh; ls -l; make plexem.mjs