Skip to content

Commit 502f524

Browse files
committed
fixed runner detection in github actions
1 parent a4d6cd3 commit 502f524

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- os: windows-latest
4040
target: win-x86
4141
id: windows-x86
42-
- os: windows-latest
42+
- os: windows-11-arm
4343
target: win-arm64
4444
id: windows-arm64
4545

@@ -57,15 +57,15 @@ jobs:
5757
- name: Publish
5858
run: dotnet publish -c Release -r ${{matrix.target}} -o ${{github.workspace}}/publish/${{matrix.target}}
5959
- name: Compress (Ubuntu)
60-
if: matrix.os == 'ubuntu-latest'
60+
if: startsWith(matrix.os, 'ubuntu')
6161
run: |
6262
mkdir -p ${{github.workspace}}/artifacts
6363
cd ${{github.workspace}}/publish/${{matrix.target}}
6464
mv LineCount linecount
6565
tar -cjf ${{github.workspace}}/artifacts/linecount-v${{inputs.version}}-${{matrix.id}}.tar.xz linecount
6666
tar -czf ${{github.workspace}}/artifacts/linecount-v${{inputs.version}}-${{matrix.id}}.tar.gz linecount
6767
- name: Compress (Windows)
68-
if: matrix.os == 'windows-latest'
68+
if: startsWith(matrix.os, 'windows')
6969
shell: pwsh
7070
run: |
7171
New-Item -Type Directory -Path ${{github.workspace}}/artifacts -Force

0 commit comments

Comments
 (0)