This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Refactor #3
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 feature | |
on: | |
push: | |
branches: | |
- 'feature/**' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
name: Test | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Protoc | |
uses: zchee/setup-protoc@v1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
- name: Test | |
run: | | |
./compile-protobuf.sh | |
dotnet test | |
build: | |
name: Build feature | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Protoc | |
uses: zchee/setup-protoc@v1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
- name: Build | |
run: | | |
./compile-protobuf.sh | |
dotnet build -c Release | |
- name: Pack | |
run: dotnet pack Sources/SMTSP/SMTSP.csproj -c Release --output packages | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: NuGet-Package | |
path: packages |