-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5c8f62
commit b1c2319
Showing
2 changed files
with
27 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,61 +4,38 @@ on: | |
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
- published | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
target: ["win-x64", "linux-x64"] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Get Version | ||
uses: kzrnm/[email protected] | ||
id: get-version | ||
with: | ||
proj-path: src/OneWare.Quartus/OneWare.Quartus.csproj | ||
- name: Build ${{ matrix.target }} | ||
run: dotnet build src/OneWare.Quartus/OneWare.Quartus.csproj -c Release -r ${{ matrix.target }} -o publish | ||
- name: Compress ${{ matrix.target }} | ||
uses: thedoctor0/[email protected] | ||
with: | ||
type: 'zip' | ||
filename: ../OneWare.QuartusExtension_${{steps.get-version.outputs.version}}_${{ matrix.target }}.zip | ||
directory: ./publish | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: OneWare.QuartusExtension_${{ matrix.target }} | ||
if-no-files-found: error | ||
retention-days: 5 | ||
path: ./OneWare.QuartusExtension_${{steps.get-version.outputs.version}}_${{ matrix.target }}.zip | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
needs: [ build ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Get Version | ||
uses: kzrnm/[email protected] | ||
id: get-version | ||
with: | ||
proj-path: src/OneWare.Quartus/OneWare.Quartus.csproj | ||
- uses: actions/download-artifact@v3 | ||
- name: Build | ||
run: dotnet build src/OneWare.Quartus/OneWare.Quartus.csproj -c Release -o publish | ||
- name: Compress | ||
uses: thedoctor0/[email protected] | ||
with: | ||
path: ./artifacts | ||
- uses: ncipollo/release-action@v1 | ||
type: 'zip' | ||
filename: ../OneWare_Quartus_${{steps.get-version.outputs.version}}_all.zip | ||
directory: ./publish | ||
- name: Debug | ||
run: ls | ||
- uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "artifacts/**/*.zip" | ||
artifacts: "OneWare_Quartus_${{steps.get-version.outputs.version}}_all.zip" | ||
tag: ${{steps.get-version.outputs.version}} | ||
allowUpdates: true |
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