-
Notifications
You must be signed in to change notification settings - Fork 35
95 lines (79 loc) · 2.21 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# GitHub Actions CI script for mkpsxiso
# (C) 2021 spicyjpeg
name: Build mkpsxiso
on: [ push, pull_request ]
jobs:
build-windows:
name: Build mkpsxiso on Windows
runs-on: windows-latest
steps:
- name: Fetch repo contents
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build and package mkpsxiso
run: |
cmake --workflow ci
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: mkpsxiso-windows
path: |
build/packages/*
!build/packages/_CPack_Packages
build-linux:
name: Build mkpsxiso on Linux
runs-on: ubuntu-latest
steps:
- name: Fetch repo contents
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build and package mkpsxiso
run: |
cmake --workflow ci
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: mkpsxiso-linux
path: |
build/packages/*
!build/packages/_CPack_Packages
build-macos:
name: Build mkpsxiso on macOS
runs-on: macos-latest
steps:
- name: Fetch repo contents
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build and package mkpsxiso
run: |
cmake --workflow ci
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: mkpsxiso-macos
path: |
build/packages/*
!build/packages/_CPack_Packages
# This job takes care of creating a new release and upload the build
# artifacts if the last commit is associated to a tag.
create-release:
name: Create release
runs-on: ubuntu-latest
needs: [ build-windows, build-linux, build-macos ]
steps:
- name: Fetch build artifacts
if: ${{ github.ref_type == 'tag' }}
uses: actions/download-artifact@v4
- name: Publish release
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v2
with:
fail_on_unmatched_files: true
#generate_release_notes: true
files: |
mkpsxiso-windows/*
mkpsxiso-linux/*
mkpsxiso-macos/*