chore(ci): split ci/build
Windows builds need to run on Windows runners, so if we can't matrix-ify build then this is more organized anyway.
This commit is contained in:
parent
3e3842fc99
commit
80ecbb1212
|
|
@ -0,0 +1,25 @@
|
|||
name: Build
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
windows:
|
||||
name: Windows
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 7.0
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet publish -r win-x64 -c Release --no-self-contained -p:PublishDir=../publish/win-x64
|
||||
mv publish/win-x64/Kiseki.Launcher.Windows.exe publish/win-x64/Kiseki.Launcher.exe
|
||||
mv publish/win-x64/Kiseki.Launcher.Windows.pdb publish/win-x64/Kiseki.Launcher.pdb
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: win-x64
|
||||
path: publish/win-x64/*
|
||||
|
|
@ -2,31 +2,8 @@ name: CI
|
|||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 7.0
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
dotnet publish -r win-x64 -c Release --no-self-contained -p:PublishDir=../publish/win-x64
|
||||
mv publish/win-x64/Kiseki.Launcher.Windows.exe publish/win-x64/Kiseki.Launcher.exe
|
||||
mv publish/win-x64/Kiseki.Launcher.Windows.pdb publish/win-x64/Kiseki.Launcher.pdb
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: win-x64
|
||||
path: publish/win-x64/*
|
||||
|
||||
release:
|
||||
name: Release
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
if: startsWith(github.ref, 'refs/tag/v')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue