ci: use zip for windows release #74
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-macos | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "**/*.cs" | |
- "**/*.csproj" | |
- "**/*.resx" | |
- ".github/workflows/*.yml" | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize, reopened] | |
paths: | |
- "**/*.cs" | |
- "**/*.csproj" | |
- "**/*.resx" | |
- ".github/workflows/*.yml" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
runtime: [osx-x64] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build for ${{ matrix.runtime }} | |
run: | | |
dotnet build OpenTrace.csproj --runtime ${{ matrix.runtime }} --configuration Release --self-contained -f net6.0 | |
- name: Make tarball | |
run: cd ./bin/Mac64/Release/net6.0/${{ matrix.runtime }} && tar -cvzf OpenTrace_${{ matrix.runtime }}.app.tar.gz OpenTrace.app | |
- name: Upload artifact for ${{ matrix.runtime }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OpenTrace_${{ matrix.runtime }}.app.tar.gz | |
path: ./bin/Mac64/Release/net6.0/${{ matrix.runtime }}/OpenTrace_${{ matrix.runtime }}.app.tar.gz |