-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (68 loc) · 2.2 KB
/
main.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
name: Midday build
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-pack-win64:
runs-on: windows-2022
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- run: py -3.12 -m pip install --user pipx
- run: py -3.12 -m pipx ensurepath
- run: pipx install gvsbuild
- run: gvsbuild build gtk4 libadwaita librsvg
- run: echo "C:\gtk-build\gtk\x64\release\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Update dependencies
run: bash update_dependencies.sh
- name: Build Rust
run: cargo build --release
- name: Build .Net
run: bash build.sh
- name: Pack
run: bash pack.sh
- uses: actions/upload-artifact@v2
with:
name: Sonic 4 Mod Loader
path: dist/Sonic4ModLoader.7z
- uses: actions/upload-artifact@v2
with:
name: Sonic 4 Mod Loader (without 7-Zip)
path: dist/Sonic4ModLoader_7zip-less.7z
- uses: actions/upload-artifact@v2
with:
name: SHA256 sums
path: dist/SHA256SUMS
- uses: actions/upload-artifact@v2
with:
name: AMBPatcher
path: dist/Sonic4ModLoader/AMBPatcher.exe
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: actions/checkout@v2
- name: Build AMBPatcher
run: |
dotnet publish Sonic4_ModLoader/AMBPatcher -c Release --os linux
mkdir -p "./dist/Sonic4ModLoader/Mod Loader - licenses"
cp "./Sonic4_ModLoader/AMBPatcher/bin/Release/net6.0/linux-x64/publish/AMBPatcher" "./dist/Sonic4ModLoader/AMBPatcher.exe"
- name: Run tests
run: bash ./tests/run_tests.sh --no-crash