-
Notifications
You must be signed in to change notification settings - Fork 47
59 lines (55 loc) · 1.49 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
name: NSFPlay Builds
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-win32:
name: NSFPlay Windows 32-bit
runs-on: windows-2019
steps:
- name: Checkout Files
uses: actions/checkout@v4
- name: Setup MSVC
uses: microsoft/setup-msbuild@v2
- name: Build
run: msbuild nsfplay.sln -t:rebuild -property:Configuration=Release -property:Platform=Win32
- name: Prepare Artifacts
shell: pwsh
run: |
./artifact.bat
echo "BUILD_TAG=$(git log -1 --format="%ad--%h" --date=format-local:"%Y-%m-%d-%H%M%S")" >> $env:GITHUB_ENV
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: nsfplay-unstable--${{ env.BUILD_TAG }}
path: artifact/
build-contrib-windown:
name: Contrib Windows
runs-on: windows-2019
steps:
- name: Checkout Files
uses: actions/checkout@v4
- name: Build
run: make -C contrib
build-contrib-ubuntu:
name: Contrib Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout Files
uses: actions/checkout@v4
- name: Build
run: make -C contrib
build-contrib-macos:
name: Contrib macOS
runs-on: macos-latest
steps:
- name: Checkout Files
uses: actions/checkout@v4
- name: Build
run: make -C contrib