-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (54 loc) · 2.11 KB
/
pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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" ]
# 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:
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 submodules
working-directory: ${{ github.workspace }}/
run: git submodule update --recursive --init
- name: Checkout binaries for web version
working-directory: ${{ github.workspace }}/
run: |
git clone --depth=1 https://github.com/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://github.com/emscripten-core/emsdk.git
cd emsdk; ./emsdk install latest; ./emsdk activate latest
- name: Generate musashi headers
working-directory: ${{ github.workspace }}/
run: cd Musashi; make
- name: Compile for web
working-directory: ${{ github.workspace }}/
run: source ./emsdk/emsdk_env.sh; ls -l; make plexem.mjs
- name: Move results
working-directory: ${{ github.workspace }}/
run: mkdir web; mv plexem.* web; mv web/plexem.html web/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'web'
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: emscripten
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4