-
Notifications
You must be signed in to change notification settings - Fork 101
56 lines (45 loc) · 1.3 KB
/
build-linux.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
51
52
53
54
55
name: build-linux
on:
push:
branches:
- master
paths:
- "**/*.cs"
- "**/*.csproj"
- "**/*.resx"
- ".github/workflows/*.yml"
pull_request:
branches:
- master
types: [opened, synchronize, reopened]
paths:
- "**/*.cs"
- "**/*.csproj"
- "**/*.resx"
- ".github/workflows/*.yml"
jobs:
build:
strategy:
matrix:
runtime: [linux-x64]
include:
- runtime: linux-x64
artifact_path: ./bin/Gtk/Release/net6.0/linux-x64
self_contained: "--self-contained"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build for ${{ matrix.runtime }}
run: |
dotnet build OpenTrace.csproj --runtime ${{ matrix.runtime }} --configuration Release ${{ matrix.self_contained }} -f net6.0
- name: Make tarball
run: cd ${{ matrix.artifact_path }} && chmod +x ./OpenTrace && tar -cvzf ../${{ matrix.runtime }}.tar.gz ./
- name: Upload artifact for ${{ matrix.runtime }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.runtime }}.tar.gz
path: ./bin/Gtk/Release/net6.0/${{ matrix.runtime }}.tar.gz