Skip to content

Commit

Permalink
Proper archive artifacts (with subdirs), and with single common step
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Nov 30, 2024
1 parent dc47003 commit 7d50652
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
# last Intel-based macOS
macos-12
]
include:
- runner: ubuntu-latest
library_extension: so
- runner: windows-latest
library_extension: dll
- runner: macos-12
library_extension: dylib
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -68,28 +75,11 @@ jobs:
cd src/deprecated_library/
./castleengine_compile.sh
- name: Archive Artifacts (Linux)
if: ${{ matrix.runner == 'ubuntu-latest' }}
- name: Archive Artifacts
uses: actions/upload-artifact@v4
with:
name: linux-build
path: "*.so"
if-no-files-found: error

- name: Archive Artifacts (Windows)
if: ${{ matrix.runner == 'windows-latest' }}
uses: actions/upload-artifact@v4
with:
name: windows-build
path: "*.dll"
if-no-files-found: error

- name: Archive Artifacts (macOS)
if: ${{ matrix.runner == 'macos-12' }}
uses: actions/upload-artifact@v4
with:
name: macos-build
path: "*.dylib"
name: build-${{ matrix.runner }}
path: "src/deprecated_library/*.${{ matrix.library_extension }}"
if-no-files-found: error

release:
Expand Down

0 comments on commit 7d50652

Please # to comment.