blob: 2cd9f9fa44465aa5c5171296457628b44f059bc4 (
plain)
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
|
name: Build test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: make clean all x64
run: make -C source clean all
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nesasm_linux_x64
path: .
- name: Get ARM toolchain
run: sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
- name: make clean all arm
run: make -C source clean all CC=arm-linux-gnueabihf-gcc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nesasm_linux_arm
path: .
- name: make clean all arm64
run: make -C source clean all CC=aarch64-linux-gnu-gcc
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nesasm_linux_arm64
path: .
build-macos:
runs-on: macos-latest
steps:
- name: Install argp
run: brew install argp-standalone
- name: Checkout
uses: actions/checkout@v3
- name: make clean all
run: make -C source clean all
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nesasm_macos
path: .
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
base-devel
gcc
git
libargp-devel
- name: Checkout
uses: actions/checkout@v3
- name: make clean all
run: make -C source clean all
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nesasm_windows
path: .
|