Skip to content

Commit

Permalink
fix: windows GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
dudiao committed Nov 20, 2023
1 parent c447cab commit 044718a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/native_image_release_win.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build linux and mac native image
name: Build win native image

on:
workflow_dispatch:
Expand All @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
# 'ubuntu-latest', 'windows-latest', 'macos-latest'
os: ['windows-2022']
os: ['windows-2019']
name: build - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
Expand All @@ -35,6 +35,7 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Set vars
shell: bash
run: |
OS=$(echo '${{ runner.os }}' | awk '{print tolower($0)}')
[[ $OS == 'ubuntu' ]] && echo "OS=linux" >> $GITHUB_ENV || echo "OS=$OS" >> $GITHUB_ENV
Expand Down

0 comments on commit 044718a

Please sign in to comment.