From 9c742e4e240f1750adac601e6adf7bf8118fbf91 Mon Sep 17 00:00:00 2001 From: Nikita Fediuchin Date: Tue, 20 Aug 2024 18:46:20 +0200 Subject: [PATCH] Add workflow build artifacts publishing --- .github/workflows/cmake.yml | 26 ++++++++++++++++++++------ libraries/mpio | 2 +- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 0645063..39a0043 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -7,17 +7,17 @@ env: jobs: build: - runs-on: ${{ matrix.os }} + runs-on: ${{matrix.os}} strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - - name: Create Build Environment + - name: Create build environment run: cmake -E make_directory ${{runner.workspace}}/build - name: Configure CMake @@ -25,12 +25,26 @@ jobs: working-directory: ${{runner.workspace}}/build run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - name: Build + - name: Build project working-directory: ${{runner.workspace}}/build shell: bash - run: cmake --build . --config $BUILD_TYPE + run: cmake --build . --config $BUILD_TYPE --parallel - - name: Test + - name: Run tests working-directory: ${{runner.workspace}}/build shell: bash run: ctest -C $BUILD_TYPE + + - name: Archive artifacts + if: startsWith(github.ref, 'refs/tags/') + working-directory: ${{runner.workspace}} + shell: bash + run: 7z a -mx9 ${{github.event.repository.name}}-${{github.ref_name}}-${{runner.os}}-${{runner.arch}}.zip ./build/* + + - name: Release artifacts + if: startsWith(github.ref, 'refs/tags/') + uses: softprops/action-gh-release@v2 + with: + fail_on_unmatched_files: true + generate_release_notes: true + files: ${{runner.workspace}}/*.zip diff --git a/libraries/mpio b/libraries/mpio index ae8b432..29ae2e5 160000 --- a/libraries/mpio +++ b/libraries/mpio @@ -1 +1 @@ -Subproject commit ae8b432f34e45de42245a8faa2892347ea7b5988 +Subproject commit 29ae2e55238cc6a1b4b9289720fba22cea842839