Skip to content

Commit

Permalink
workflows: update upload-artifact to v4
Browse files Browse the repository at this point in the history
change mac build from 12 to 13.

Signed-off-by: Frank Li <[email protected]>
  • Loading branch information
nxpfrankli committed Jan 9, 2025
1 parent e926f83 commit 6770a52
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Upload Build Artifacts
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uuu
path: ./uuu/uuu
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: cp uuu/uuu uuu_${{ matrix.arch }}

- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uuu_${{ matrix.arch }}
path: uuu_${{ matrix.arch }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
a2x -L -a docinfo UUU
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: UUU.pdf
path: wiki/UUU.pdf
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
types:
- opened
- synchronize

jobs:
build:
name: macOS Build
Expand All @@ -19,8 +19,8 @@ jobs:
matrix:
os:
- macos-14
- macos-12
- macos-13

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -29,30 +29,30 @@ jobs:

- name: Set up environment
run: brew install libusb pkg-config zstd tinyxml2

- name: Build
run: |
git fetch --tags --force # Retrieve annotated tags. #issue 290
export PATH="/usr/local/Cellar/pkg-config/0.29.2_3/bin:${PATH}"; pkg-config --list-all; cmake -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl . ; make
- name: Rename_x86
if: matrix.os == 'macos-12'
if: matrix.os == 'macos-13'
run: cp uuu/uuu uuu_mac_x86

- name: Rename_arm
if: matrix.os == 'macos-14'
run: cp uuu/uuu uuu_mac_arm

- name: Upload Build Artifacts
if: matrix.os == 'macos-12'
uses: actions/upload-artifact@v3
if: matrix.os == 'macos-13'
uses: actions/upload-artifact@v4
with:
name: uuu_mac_x86
path: uuu_mac_x86

- name: Upload Build Artifacts
if: matrix.os == 'macos-14'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uuu_mac_arm
path: uuu_mac_arm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
tar xzf uuu_source-${{ github.ref_name }}.tar.gz && zip uuu_source-${{ github.ref_name }}.zip $(tar tf uuu_source-${{ github.ref_name }}.tar.gz)
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uuu_source-${{ github.ref_name }}.tar.gz
path: uuu_source-${{ github.ref_name }}.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
fetch-depth: 0
submodules: true

- name: Set up Visual Studio
uses: microsoft/[email protected]

Expand All @@ -37,7 +37,7 @@ jobs:
- name: Upload Build Artifacts
if: matrix.configuration == 'Release' && matrix.platform == 'x64'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: uuu.exe
path: msvc/x64/Release/uuu.exe
Expand Down

0 comments on commit 6770a52

Please sign in to comment.