Improve loader directory (#40) #18
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: Build with .NET | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
os: | |
- win-x64 | |
- osx-x64 | |
- linux-x64 | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: '6.0.x' | |
- name: Build Kamek for ${{ matrix.os }} | |
shell: cmd | |
run: | | |
cd ${{ github.workspace }} | |
mkdir build | |
cd Kamek | |
dotnet restore | |
dotnet build -p:Configuration=Release | |
pushd %CD% | |
cd bin\Release\net6.0 | |
mkdir publish | |
set out=%CD%\publish | |
set rid=${{ matrix.os }} | |
popd | |
dotnet publish -c Release -r %rid% --self-contained true -p:PublishSingleFile=true -o %out%\%rid% | |
pushd %CD% | |
cd %out%\%rid% | |
rm *.pdb | |
cp Kamek* ${{ github.workspace }}\build | |
- uses: actions/[email protected] | |
with: | |
name: ${{ matrix.os }} | |
path: ${{ github.workspace }}/build |