Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Refactor

Refactor #3

Workflow file for this run

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