I hope I included all licenses that is possible to get from the docs #191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |