Skip to content

Commit

Permalink
build(ci): more selective upload of artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldarnar committed Mar 15, 2024
1 parent d89cfdb commit 16e5462
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/linux_amd64.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Linux amd64

on:
workflow_run:
workflows: ["MacOS amd64", "MacOS aarch64"]
types:
- completed
on: [push]

jobs:
build:
Expand All @@ -30,5 +26,8 @@ jobs:
path: .
- name: Build
run: ./gradlew buildNatives
- name: Check results
run: ls -l build/natives/
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: linux-windows-amd64-artifacts
path: build/natives/*/*[.so, .dylib, .dll]
2 changes: 1 addition & 1 deletion .github/workflows/macosx_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: macosx-aarch64-artifacts
path: build/natives/macosx_aarch64_clang
path: build/natives/*/*[.so, .dylib, .dll]
2 changes: 1 addition & 1 deletion .github/workflows/macosx_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: macosx-amd64-artifacts
path: build/natives/macosx_amd64_clang
path: build/natives/*/*[.so, .dylib, .dll]

0 comments on commit 16e5462

Please sign in to comment.