-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 928 Bytes
/
make.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
name: CI
on:
push:
workflow_dispatch:
jobs:
build-emulator:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
game: [movingnum, paint-cursor, paint, rv-asm, tic-tac-toe]
name: "Build ${{ matrix.game }} on ${{ matrix.os }}"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build emulator executable
shell: bash
run: |
cd ${{ matrix.game }}
make emulator
mkdir -p bin
if [ ${{ matrix.os }} == 'windows-latest' ]; then
mv ${{ matrix.game }}.exe bin/
else
mv ${{ matrix.game }} bin/
fi
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.game }}-${{ matrix.os }}
path: ${{ matrix.game }}/bin
compression-level: 9
if-no-files-found: error