From 05643abb7d97521d3de487e24d5a13621d3cd4c8 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Fri, 27 Dec 2024 11:49:49 +0100 Subject: [PATCH] Update GitHub actions CI script --- .github/workflows/ci.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ef6204..b8df933 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,32 +9,32 @@ jobs: fail-fast: false matrix: include: - - description: Windows / Visual Studio + - description: Windows - Visual Studio os: windows-2019 cmakeOptions: '-G "Visual Studio 16 2019" -A x64' publish: true - - description: macOS / Xcode - os: macos-10.15 + - description: macOS - Xcode + os: macos-13 cmakeOptions: "" publish: true - - description: Linux / GCC + - description: Linux - GCC os: ubuntu-20.04 cmakeOptions: "-D CMAKE_C_COMPILER=gcc-10 -D CMAKE_CXX_COMPILER=g++-10" publish: true - - description: Linux / Clang + - description: Linux - Clang os: ubuntu-20.04 cmakeOptions: "-D CMAKE_C_COMPILER=clang-12 -D CMAKE_CXX_COMPILER=clang++-12" publish: false env: BOOST_ROOT: ${{ github.workspace }}/lib/boost - BOOST_URL: https://sourceforge.net/projects/boost/files/boost/1.76.0/boost_1_76_0.tar.bz2/download + BOOST_URL: https://sourceforge.net/projects/boost/files/boost/1.86.0/boost_1_86_0.tar.bz2/download steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: lfs: true - name: Restore Boost from cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: cache-boost with: path: ${{ env.BOOST_ROOT }} @@ -57,11 +57,6 @@ jobs: cd build cmake ${{ matrix.cmakeOptions }} .. cmake --build . --config Release --target package - - name: Upload artifacts - uses: actions/upload-artifact@v2 - with: - name: binaries - path: build/*.zip - name: Run tests shell: bash run: | @@ -70,17 +65,21 @@ jobs: else ./build/rhubarb/runTests fi + - name: Upload artifacts + if: ${{ matrix.publish }} + uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.description }} + path: build/*.zip release: needs: build runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') steps: - name: Download artifacts - uses: actions/download-artifact@v2 - with: - name: binaries + uses: actions/download-artifact@v4 - name: Create GitHub release draft - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: draft: true files: "*.zip"