-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (50 loc) · 1.8 KB
/
build-frontend-with-runtime.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
56
57
58
59
60
61
name: Build EVIL front-end with runtime
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
matrix:
runtime-identifier: [win-x64, linux-x64]
configuration: [Debug, Release]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- name: Restore solution
run: dotnet restore
env:
Configuration: ${{ matrix.configuration }}
- name: Build solution
run: dotnet build -c $Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Run language tests
working-directory: VirtualMachine/Tests/EVIL.Ceres.LanguageTests/bin/${{ matrix.configuration }}/net7.0
run: ./LanguageTestRunner tests --fail-on-compiler-errors --fail-on-test-errors
- name: Publish to directory
run: dotnet publish FrontEnd/EVIL.evil/EVIL.evil.csproj -c $Configuration -r $RuntimeIdentifier --no-self-contained -p:PublishSingleFile=true
env:
Configuration: ${{ matrix.configuration }}
RuntimeIdentifier: ${{ matrix.runtime-identifier }}
- name: Fetch front-end version
id: package_version
uses: MWin10/[email protected]
with:
file: FrontEnd/EVIL.evil/EVIL.evil.csproj
- name: Pack artifact
uses: actions/[email protected]
with:
name: evil-${{ steps.package_version.outputs.version }}_${{ matrix.runtime-identifier }}-${{ matrix.configuration }}
path: FrontEnd/EVIL.evil/bin/${{ matrix.configuration }}/net7.0/${{ matrix.runtime-identifier }}/publish
if-no-files-found: error
retention-days: 90