-
Notifications
You must be signed in to change notification settings - Fork 3
87 lines (77 loc) · 2.14 KB
/
Copy pathci.yaml
File metadata and controls
87 lines (77 loc) · 2.14 KB
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
name: CI
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '.github/*'
- '.github/workflows/**.yml'
- '.gitattributes'
- '.gitignore'
- 'docs/**'
- '**.md'
- 'LICENSE'
workflow_dispatch:
jobs:
build-plugin:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Restore packages
run: dotnet restore Plugin/FEZ.HAT.mm.csproj
- name: Build plugin
run: dotnet build Plugin/FEZ.HAT.mm.csproj -c Debug
- name: Upload plugin
uses: actions/upload-artifact@v7
with:
name: HAT
path: Plugin/bin/Debug/
if-no-files-found: error
build-installer:
needs: [ build-plugin ]
strategy:
matrix:
include:
- os: windows-latest
rid: win-x64
artifact: HATinstaller-win-x64.exe
- os: ubuntu-latest
rid: linux-x64
artifact: HATinstaller-linux-x64
- os: macos-latest
rid: osx-x64
artifact: HATinstaller-osx-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Download plugin
uses: actions/download-artifact@v8
with:
name: HAT
path: Plugin/bin/Debug/
- name: Publish installer
run: dotnet publish Installer/FEZ.HAT.Installer.csproj -c Debug -r ${{ matrix.rid }} -p:BuildProjectReferences=false
- name: Rename artifact
shell: bash
run: |
src=$(find Installer/bin/Debug -path '*/publish/HATinstaller' -o -path '*/publish/HATinstaller.exe' | head -1)
mv "$src" "${{ matrix.artifact }}"
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
archive: false
if-no-files-found: error