Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Forgot-Dream/STS-Bcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Forgot-Dream committed Dec 27, 2023
2 parents 7ca2d05 + c32f1a7 commit a88a768
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Latest

on: [push,workflow_dispatch]

env:
DOTNET_SDK_VERSION: '8.0.*'
PROJECT_NAME: 'STS-Bcut'

jobs:

build-win-x64-arm64:

runs-on: windows-latest

steps:

- uses: actions/checkout@v1

- name: Set up dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}

- run: dotnet publish ${{ env.PROJECT_NAME }}.sln -r win-x64 -c Release -o artifact-x64 -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained true
- run: dotnet publish ${{ env.PROJECT_NAME }}.sln -r win-arm64 -c Release -o artifact-arm64 -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained true

- name: Upload Artifact[win-x64]
uses: actions/[email protected]
with:
name: ${{ env.PROJECT_NAME }}_win-x64
path: artifact-x64\${{ env.PROJECT_NAME }}.exe

- name: Upload Artifact[win-arm64]
uses: actions/[email protected]
with:
name: ${{ env.PROJECT_NAME }}_win-arm64
path: artifact-arm64\${{ env.PROJECT_NAME }}.exe

0 comments on commit a88a768

Please sign in to comment.