Skip to content

Commit

Permalink
Upgrade CI to .net8.0-
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Jan 22, 2024
1 parent 4057f66 commit aecc708
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,70 +13,70 @@ jobs:
steps:
- uses: actions/checkout@v2
name: Checkout

- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.x
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-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:
Expand All @@ -85,24 +85,24 @@ jobs:
./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

0 comments on commit aecc708

Please sign in to comment.