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

Update

Update #12

Workflow file for this run

name: Build
on:
push:
branches: ["*"]
tags-ignore: ["v*"]
pull_request:
branches: ["main"]
jobs:
build-runtime-package:
strategy:
matrix:
rid:
[
win-x64,
# win-x86,
]
include:
- { os: ubuntu-latest, rid: win-x64 }
# - { os: ubuntu-latest, rid: win-x86 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
fetch-depth: 0
- name: Install .NET Sdk
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Do pack
run: |
dotnet build native/native.csproj -p:Configuration=Release -p:RuntimeIdentifier=${{ matrix.rid }}
dotnet pack native/NativeLibrary.runtime.csproj -p:RuntimeIdentifier=${{ matrix.rid }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: "nupkgs"
build-main-package:
needs: build-runtime-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Sdk
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- uses: actions/download-artifact@v3
with:
name: Artifacts
path: "nupkgs"
- name: Do pack
run: |
dotnet pack native/NativeLibrary.csproj -c Release
dotnet pack -c Release
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: "nupkgs"