Skip to content

Commit

Permalink
Fix: upload separate artifacts for each os/arch
Browse files Browse the repository at this point in the history
Merging artifacts is no longer supported by upload-artifact v4.
  • Loading branch information
Gegy committed Oct 13, 2024
1 parent 1fcafda commit d3170fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common/java-natives/linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ runs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: natives
name: natives-${{ runner.os }}-${{ matrix.arch }}
path: bindings/java/native/build/libs/
2 changes: 1 addition & 1 deletion .github/workflows/common/java-natives/macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ runs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: natives
name: natives-${{ runner.os }}-${{ matrix.arch }}
path: bindings/java/native/build/libs/
2 changes: 1 addition & 1 deletion .github/workflows/common/java-natives/windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ runs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: natives
name: natives-${{ runner.os }}-${{ matrix.arch }}
path: bindings/java/native/build/libs/
5 changes: 3 additions & 2 deletions .github/workflows/publish-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ jobs:
uses: actions/checkout@v4

- name: Download natives
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: natives
pattern: dist-*
merge-multiple: true
path: bindings/java/bin/

- name: Setup Gradle
Expand Down

0 comments on commit d3170fd

Please sign in to comment.