Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit b17e85d

Browse files
committed
Update workflow yml files [skip ci]
1 parent 31d1add commit b17e85d

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,67 +9,67 @@ jobs:
99
win64:
1010
runs-on: windows-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313
- name: build
1414
shell: pwsh
1515
run: |
1616
cmake -B build
1717
cmake --build build --config Release --target axslcc
1818
- name: Upload
19-
uses: actions/upload-artifact@v4
19+
uses: actions/upload-artifact@v5
2020
with:
2121
path: ./build/src/Release/axslcc.exe
2222
name: axslcc-win64
2323
linux:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
- name: build
2828
shell: pwsh
2929
run: |
3030
cmake -B build -DCMAKE_BUILD_TYPE=Release
3131
cmake --build build --config Release --target axslcc
3232
- name: Upload
33-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v5
3434
with:
3535
path: ./build/src/axslcc
3636
name: axslcc-linux
3737
osx-arm64:
3838
runs-on: macos-latest
3939
steps:
40-
- uses: actions/checkout@v4
40+
- uses: actions/checkout@v6
4141
- name: Setup Xcode version
4242
uses: maxim-lobanov/setup-xcode@v1
4343
with:
4444
xcode-version: '16.4'
4545
- name: build
4646
shell: pwsh
4747
run: |
48-
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
48+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=arm64 "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
4949
cmake --build build --config Release --target axslcc
5050
lipo -info ./build/src/axslcc
5151
- name: Upload
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@v5
5353
with:
5454
path: ./build/src/axslcc
5555
name: axslcc-osx-arm64
5656

5757
osx-x64:
58-
runs-on: macos-13
58+
runs-on: macos-latest
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v6
6161
- name: Setup Xcode version
6262
uses: maxim-lobanov/setup-xcode@v1
6363
with:
64-
xcode-version: '15.2'
64+
xcode-version: '16.4'
6565
- name: build
6666
shell: pwsh
6767
run: |
68-
cmake -B build -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
68+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64 "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
6969
cmake --build build --config Release --target axslcc
7070
lipo -info ./build/src/axslcc
7171
- name: Upload
72-
uses: actions/upload-artifact@v4
72+
uses: actions/upload-artifact@v5
7373
with:
7474
path: ./build/src/axslcc
7575
name: axslcc-osx-x64

.github/workflows/dist.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
# Steps represent a sequence of tasks that will be executed as part of the job
2828
steps:
2929

30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v6
31+
with:
32+
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.ref }}
3133

3234
- name: Check release version
3335
id: check_ver
@@ -45,7 +47,7 @@ jobs:
4547
4648
- name: Download artifacts from workflow build
4749
if: ${{ steps.check_ver.outputs.release_ver != '' }}
48-
uses: dawidd6/action-download-artifact@v2
50+
uses: dawidd6/action-download-artifact@v11
4951
with:
5052
# Optional, GitHub token
5153
github_token: ${{secrets.GITHUB_TOKEN}}
@@ -78,6 +80,7 @@ jobs:
7880
with:
7981
tag_name: ${{ steps.check_ver.outputs.release_tag }}
8082
name: ${{ steps.check_ver.outputs.release_tag }}
83+
target_commitish: "${{ github.head_ref || github.ref_name }}"
8184
files: |
8285
./pkg_dir/*
8386
env:

0 commit comments

Comments
 (0)