chore: Use Spice86 Nuget v8.0.2 #19
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: "pre-release" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
pre-release: | |
name: "Pre Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Install zip | |
uses: montudor/action-zip@v1 | |
- name: Build with dotnet | |
working-directory: ./src/Cryogenic | |
run: | | |
dotnet restore | |
dotnet publish -c Release -r linux-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/linux-arm64 | |
dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/linux-x64 | |
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/windows-x64 | |
dotnet publish -c Release -r win-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/windows-arm64 | |
dotnet publish -c Release -r osx-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/macos-x64 | |
dotnet publish -c Release -r osx-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Release/macos-arm64 | |
dotnet publish -c Debug -r linux-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/linux-x64 | |
dotnet publish -c Debug -r linux-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/linux-arm64 | |
dotnet publish -c Debug -r win-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/windows-x64 | |
dotnet publish -c Debug -r win-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/windows-arm64 | |
dotnet publish -c Debug -r osx-x64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/macos-x64 | |
dotnet publish -c Debug -r osx-arm64 --self-contained true -p:PublishReadyToRun=true -p:PublishSingleFile=true -o Debug/macos-arm64 | |
- name: Zip Debug output | |
run: zip -qq -r DebugBuild.zip Debug | |
working-directory: ./src/Cryogenic/bin | |
- name: Zip Release output | |
run: zip -qq -r ReleaseBuild.zip Release | |
working-directory: ./src/Cryogenic/bin | |
- name: Publish GitHub Release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Pre-release" | |
files: | | |
./src/bin/DebugBuild.zip | |
./src/bin/ReleaseBuild.zip |