blob: 6172e0db174ef34447534833422ea151d8fd2389 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
name: Build test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
host: [ubuntu-latest]
os: [win, linux, osx]
arch: [x86, x64, arm, arm64]
sc: [no-self-contained, self-contained]
exclude:
- os: linux
arch: x86
- os: osx
arch: x86
- os: osx
arch: arm
runs-on: ${{ matrix.host }}
env:
APP_NAME: nestiler
PROJECT_PATH: ./NesTiler
OUTPUT_DIR: output
CONFIGURATION: Release
OUTPUT_SUBDIR: ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.sc }}
steps:
- name: Fix line endings
run: git config --global core.autocrlf false
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Build
env:
SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true' || '--no-self-contained' }}
run: dotnet publish ${{ env.PROJECT_PATH }} -c ${{ env.CONFIGURATION }} -r ${{ matrix.os }}-${{ matrix.arch }} -p:PublishSingleFile=true ${{ env.SC_OPS }} -o ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}/${{ env.APP_NAME }} -p:IncludeAllContentForSelfExtract=true
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.OUTPUT_SUBDIR }}
path: ${{ env.OUTPUT_DIR }}/${{ env.OUTPUT_SUBDIR }}
|