Update GitHub actions CI script
This commit is contained in:
parent
3944e31d3a
commit
05643abb7d
|
@ -9,32 +9,32 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- description: Windows / Visual Studio
|
- description: Windows - Visual Studio
|
||||||
os: windows-2019
|
os: windows-2019
|
||||||
cmakeOptions: '-G "Visual Studio 16 2019" -A x64'
|
cmakeOptions: '-G "Visual Studio 16 2019" -A x64'
|
||||||
publish: true
|
publish: true
|
||||||
- description: macOS / Xcode
|
- description: macOS - Xcode
|
||||||
os: macos-10.15
|
os: macos-13
|
||||||
cmakeOptions: ""
|
cmakeOptions: ""
|
||||||
publish: true
|
publish: true
|
||||||
- description: Linux / GCC
|
- description: Linux - GCC
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
cmakeOptions: "-D CMAKE_C_COMPILER=gcc-10 -D CMAKE_CXX_COMPILER=g++-10"
|
cmakeOptions: "-D CMAKE_C_COMPILER=gcc-10 -D CMAKE_CXX_COMPILER=g++-10"
|
||||||
publish: true
|
publish: true
|
||||||
- description: Linux / Clang
|
- description: Linux - Clang
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
cmakeOptions: "-D CMAKE_C_COMPILER=clang-12 -D CMAKE_CXX_COMPILER=clang++-12"
|
cmakeOptions: "-D CMAKE_C_COMPILER=clang-12 -D CMAKE_CXX_COMPILER=clang++-12"
|
||||||
publish: false
|
publish: false
|
||||||
env:
|
env:
|
||||||
BOOST_ROOT: ${{ github.workspace }}/lib/boost
|
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:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
- name: Restore Boost from cache
|
- name: Restore Boost from cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
id: cache-boost
|
id: cache-boost
|
||||||
with:
|
with:
|
||||||
path: ${{ env.BOOST_ROOT }}
|
path: ${{ env.BOOST_ROOT }}
|
||||||
|
@ -57,11 +57,6 @@ jobs:
|
||||||
cd build
|
cd build
|
||||||
cmake ${{ matrix.cmakeOptions }} ..
|
cmake ${{ matrix.cmakeOptions }} ..
|
||||||
cmake --build . --config Release --target package
|
cmake --build . --config Release --target package
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: binaries
|
|
||||||
path: build/*.zip
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -70,17 +65,21 @@ jobs:
|
||||||
else
|
else
|
||||||
./build/rhubarb/runTests
|
./build/rhubarb/runTests
|
||||||
fi
|
fi
|
||||||
|
- name: Upload artifacts
|
||||||
|
if: ${{ matrix.publish }}
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.description }}
|
||||||
|
path: build/*.zip
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v4
|
||||||
with:
|
|
||||||
name: binaries
|
|
||||||
- name: Create GitHub release draft
|
- name: Create GitHub release draft
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
files: "*.zip"
|
files: "*.zip"
|
||||||
|
|
Loading…
Reference in New Issue