Migrate to latest GitHub actions

This commit is contained in:
Daniel Wolf 2024-12-27 11:49:49 +01:00
parent 00e4996cd6
commit 4ae52a743e
1 changed files with 9 additions and 9 deletions

View File

@ -15,26 +15,26 @@ jobs:
publish: true publish: true
- description: macOS / Xcode - description: macOS / Xcode
os: macos-10.15 os: macos-10.15
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.76.0/boost_1_76_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 }}
@ -58,7 +58,7 @@ jobs:
cmake ${{ matrix.cmakeOptions }} .. cmake ${{ matrix.cmakeOptions }} ..
cmake --build . --config Release --target package cmake --build . --config Release --target package
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: binaries name: binaries
path: build/*.zip path: build/*.zip
@ -76,13 +76,13 @@ jobs:
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: with:
name: binaries 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'
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}