Skip to content

Commit

Permalink
Upload artifacts in CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingcom committed Jan 11, 2025
1 parent 7cd5391 commit aa482b1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -G "${{matrix.config.generator}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DARMIPS_USE_STD_FILESYSTEM=ON
run: cmake -B ${{github.workspace}}/build -G "${{matrix.config.generator}}" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DARMIPS_USE_STD_FILESYSTEM=ON -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
env:
CC: ${{matrix.config.cc}}
CXX: ${{matrix.config.cxx}}
Expand All @@ -47,3 +47,15 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure

- name: Install
run: |
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install
VERSION=$(git -C ${{github.workspace}} describe --first-parent)
PLATFORM=$(echo ${{matrix.config.name}} | tr '[:upper:]' '[:lower:'] | sed 's/ /_/g')
echo "FILENAME=armips_$VERSION_$PLATFORM" >> $GITHUB_ENV
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{env.FILENAME}}
path: ${{github.workspace}}/install

0 comments on commit aa482b1

Please # to comment.