Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload built library artifact from CI #44

Merged
merged 10 commits into from
Nov 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ jobs:
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -V -C ${{matrix.build_type}}

- name: Rename library artifact
run: mv ${{runner.workspace}}/build/src/libgluasteal.so ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-gcc${{matrix.os.gcc_version}}-${{matrix.toolchain}}-${{matrix.build_type}}.so

- uses: actions/upload-artifact@v3
with:
name: "Linux"
path: ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-gcc${{matrix.os.gcc_version}}-${{matrix.toolchain}}-${{matrix.build_type}}.so
if-no-files-found: error
retention-days: 14
windows:
strategy:
matrix:
Expand Down Expand Up @@ -79,6 +89,16 @@ jobs:
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -V -C ${{matrix.build_type}} --timeout 60

- name: Rename library artifact
run: move ${{runner.workspace}}/build/src/${{matrix.build_type}}/gluasteal.dll ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-${{matrix.arch}}-${{matrix.build_type}}.dll

- uses: actions/upload-artifact@v3
with:
name: "Windows"
path: ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-${{matrix.arch}}-${{matrix.build_type}}.dll
if-no-files-found: error
retention-days: 14
macos:
strategy:
matrix:
Expand Down Expand Up @@ -117,3 +137,13 @@ jobs:
shell: bash
run: ctest -V -C ${{matrix.build_type}}

- name: Rename library artifact
run: mv ${{runner.workspace}}/build/src/libgluasteal.dylib ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-${{matrix.toolchain}}-${{matrix.build_type}}.dylib

- uses: actions/upload-artifact@v3
with:
name: "macOS"
path: ${{runner.workspace}}/build/gluasteal-${{matrix.os.distro}}-${{matrix.toolchain}}-${{matrix.build_type}}.dylib
if-no-files-found: error
retention-days: 14