diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c579dd1..6cbdb55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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: @@ -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 +