Skip to content

Upgrade .NET to 8.0

Upgrade .NET to 8.0 #8

Workflow file for this run

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: 7.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-compiler-aot:
name: Build AOT Version
runs-on: ${{ matrix.os }}
strategy:
matrix:
rid: [ win-x64, linux-x64, osx-x64, win-arm64 ]
include:
- rid: win-x64
os: windows-latest
name: Windows x64
test: true
- rid: win-arm64
os: windows-latest
name: Windows ARM64
test: false
- rid: linux-x64
os: ubuntu-latest
name: Linux x64
test: true
- rid: osx-x64
os: macos-latest
name: macOS x64
test: true
steps:
- uses: actions/checkout@v2
name: Checkout
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
- name: Build
run: dotnet publish YukimiScript.CommandLineTool/YukimiScript.CommandLineTool.fsproj -c Release -p:PublishAot=true --self-contained -r:${{ matrix.rid }} -p:PublishTrimmed=true -p:StripSymbols=true
- name: Test Executable File
if: ${{ matrix.test }}
run: ./YukimiScript.CommandLineTool/bin/Release/net7.0/${{ matrix.rid }}/publish/ykmc
- name: Upload
uses: actions/upload-artifact@v3.1.1
with:
name: YukimiScript Compiler for ${{ matrix.name }}
path: |
./YukimiScript.CommandLineTool/bin/Release/net7.0/${{ matrix.rid }}/publish/ykmc
./YukimiScript.CommandLineTool/bin/Release/net7.0/${{ matrix.rid }}/publish/ykmc.exe
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