-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (43 loc) · 1.17 KB
/
nightly.yml
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
50
name: Nightly
on:
push:
branches: [master]
jobs:
build:
name: Build ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: Linux
os: ubuntu-latest
ext: ~
runtime: linux-x64
- name: Windows
os: windows-latest
ext: .exe
runtime: win-x64
env:
proj: "TotkZstdTool"
steps:
- uses: actions/checkout@master
- name: Install DotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Publish Totk ZStd Tool
shell: bash
run: |
dotnet publish src/${{ env.proj }}.csproj \
-r ${{ matrix.config.runtime }} \
-c Release \
--sc false \
-o ${{ matrix.config.name }} \
-p:PublishSingleFile=true \
-p:IncludeNativeLibrariesForSelfExtract=true
- uses: actions/upload-artifact@v3
name: Upload artifacts
with:
name: ZSTD-Tool-${{ matrix.config.name }}
path: ${{ matrix.config.name }}/${{ env.proj }}${{ matrix.config.ext }}