-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (65 loc) · 1.79 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build and Test
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: OS=${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
ICDIR: xzintbit
MSBASICDIR: msbasic
FUNCTESTDIR: 6502_65C02_functional_tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- name: Checkout xzintbit
uses: actions/checkout@v4
with:
repository: matushorvath/xzintbit
path: xzintbit
- name: Build xzintbit
working-directory: xzintbit
env:
CC: gcc
run: make build-vm
- name: Checkout Microsoft Basic
uses: actions/checkout@v4
with:
repository: matushorvath/msbasic
path: msbasic
- name: Install cc65
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install -y cc65
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install cc65-compiler
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install cc65
fi
shell: bash
- name: Build Microsoft Basic
working-directory: msbasic
run: ./make.sh
shell: bash
- name: Checkout 6502 functional tests
uses: actions/checkout@v4
with:
repository: Klaus2m5/6502_65C02_functional_tests
path: 6502_65C02_functional_tests
- name: Build
run: make build
shell: bash
- name: Test
run: make test
- name: Store artifact
uses: actions/upload-artifact@v4
with:
name: msbasic.input
path: bin/msbasic.input
if-no-files-found: error
if: github.ref == 'refs/heads/main' && ${{ matrix.os }} == 'ubuntu-latest'