Build #2
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 | |
on: | |
workflow_dispatch: | |
jobs: | |
linux_amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Initialize .NET Environment | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.x' | |
- name: Build the project | |
run: | | |
dotnet build -c Release | |
cp LinspirerAppStoreEnumerator.NET/binary/* LinspirerAppStoreEnumerator.NET/bin/Release/net6.0/ | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build_linux_amd64 | |
path: LinspirerAppStoreEnumerator.NET/bin/Release/net6.0/ | |
win_amd64: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Initialize .NET Environment | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.x' | |
- name: Build the project | |
run: | | |
dotnet build -c Release | |
copy LinspirerAppStoreEnumerator.NET\binary\* LinspirerAppStoreEnumerator.NET\bin\Release\net6.0\ | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: build_linux_amd64 | |
path: LinspirerAppStoreEnumerator.NET\bin\Release\net6.0\ | |