[r] project setup #58
Workflow file for this run
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 Package | |
on: push | |
defaults: | |
run: | |
working-directory: src | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Install DotNet | |
uses: actions/setup-dotnet@v1 | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build Package | |
run: dotnet build --no-restore -c Release | |
- name: Perform Unit Testing | |
run: dotnet test --no-build -c Release --verbosity normal | |
- name: Create Package | |
run: dotnet pack --no-build -c Release -o ./publish | |
- name: Create packages artifact | |
if: ${{ matrix.os == 'windows-latest' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Packages | |
path: ./src/publish/ |