-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (43 loc) · 1.21 KB
/
ci.yml
File metadata and controls
53 lines (43 loc) · 1.21 KB
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-compiler-nuget-pack:
name: Build NuGet Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Test
run: dotnet test -c Release
- name: Build
run: dotnet pack YukimiScript.CommandLineTool/YukimiScript.CommandLineTool.fsproj -c Release
- name: Upload
uses: actions/upload-artifact@v3.1.1
with:
name: YukimiScript Compiler for NuGet
path: ./YukimiScript.CommandLineTool/bin/Release/*.nupkg
if-no-files-found: error
build-vscode-extension:
name: Build Visual Studio Code Extension
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Build
run: |
npm i vsce -g
cd ./yukimiscript-syntax-highlight-vscode
vsce package
- name: Upload
uses: actions/upload-artifact@v3.1.1
with:
name: YukimiScript Visual Studio Code Extension
path: ./yukimiscript-syntax-highlight-vscode/*.vsix