-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (33 loc) · 1.1 KB
/
internal-pr-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
name: Build Linux (PR Check)
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
# - name: Test
# run: dotnet test --no-build --verbosity normal
# create archive in \src\CodeQLToolkit.Core\bin\Release\net6.0\publish\linux-x64
- name: Create Build Bundle (Linux)
shell: pwsh
run: |
Write-Host (Get-Location)
dotnet publish .\src\CodeQLToolkit.Core\CodeQLToolkit.Core.csproj /p:PublishProfile=.\src\CodeQLToolkit.Core\Properties\PublishProfiles\Linux-Profile.pubxml
Compress-Archive -Path .\src\CodeQLToolkit.Core\bin\Release\net6.0\publish\linux-x64\* -DestinationPath qlt-linux-x86_64.zip
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: qlt-dist
path: qlt*.zip