-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (40 loc) · 1.06 KB
/
linux.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
name: linux
run-name: Linux Build
on:
push:
branches: [ "master" ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'README_zh.md'
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: prepare software
run: |
sudo apt-get update
sudo apt-get install git make gcc p7zip-full libsdl2-dev -y
sudo apt-get upgrade -y
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: build
run: |
xrepo update-repo
xmake -v -y
cp build/linux/${{ matrix.arch }}/release/nes nes-linux-${{ matrix.arch }}.bin
- uses: actions/upload-artifact@v4
with:
name: nes-linux-${{ matrix.arch }}.bin
path: nes-linux-${{ matrix.arch }}.bin