Skip to content

Commit

Permalink
[CI] upgrade GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Mar 28, 2024
1 parent d3e795f commit 4757349
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 82 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Cache the doxygen executable, lcov
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-tools
with:
path: |
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
VIRTUAL_ENV: /tmp/gtest

# Install Python
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.9'

Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
TOOLS_VERSION: '0.1.0-beta3'
TOOLS_URL: 'https://github.com/tttapa/cross-python/releases/download'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Ninja
Expand All @@ -28,7 +28,6 @@ jobs:
sudo mv ninja /usr/bin
working-directory: /tmp
- name: Download toolchain
if: steps.cache-tools.outputs.cache-hit != 'true'
run: wget "${{ env.TOOLS_URL }}/${{ env.TOOLS_VERSION }}/full-${{ env.HOST }}.tar.xz" -O- | sudo tar xJ -C /opt
- name: Configure
run: |
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
-D CPACK_INSTALL_CMAKE_PROJECTS=".;QPALM;ALL;/;LADEL;LADEL;ALL;/"
working-directory: package
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qpalm-linux
path: package/QPALM-*-Linux.tar.gz
Expand All @@ -70,13 +69,13 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Eigen
run: sudo VIRTUAL_ENV=/usr/local ./scripts/install-eigen.sh RelWithDebInfo
- name: Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: qpalm-linux
path: package
Expand Down Expand Up @@ -111,7 +110,7 @@ jobs:

steps:
- name: Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: qpalm-linux
path: package
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Ninja
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
-D CPACK_INSTALL_CMAKE_PROJECTS=".;QPALM;ALL;/;LADEL;LADEL;ALL;/"
working-directory: package
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qpalm-macos
path: package/QPALM-*.tar.gz
Expand All @@ -55,15 +55,15 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Ninja
run: python3 -m pip install ninja
- name: Install Eigen
run: sudo VIRTUAL_ENV=/opt/local ./scripts/install-eigen.sh RelWithDebInfo
- name: Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: qpalm-macos
path: package
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:

steps:
- name: Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: qpalm-macos
path: package
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
TOOLS_VERSION: '0.1.0-beta3'
TOOLS_URL: 'https://github.com/tttapa/cross-python/releases/download'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@5b825d0ad4205ef03dc40ba3b24cad22674e9ca3
with:
release: R2020a
- name: Download toolchain
if: steps.cache-tools.outputs.cache-hit != 'true'
run: wget "${{ env.TOOLS_URL }}/${{ env.TOOLS_VERSION }}/full-${{ env.HOST }}.tar.xz" -O- | sudo tar xJ -C /opt
- name: Configure
run: |
Expand Down Expand Up @@ -59,7 +58,7 @@ jobs:
zip -r ../qpalm-matlab-linux.zip ./*
working-directory: staging
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qpalm-matlab-linux
path: qpalm-matlab-linux.zip
Expand All @@ -72,7 +71,7 @@ jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up MATLAB
Expand Down Expand Up @@ -104,7 +103,7 @@ jobs:
zip -r ../qpalm-matlab-macos.zip ./*
working-directory: staging
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qpalm-matlab-macos
path: qpalm-matlab-macos.zip
Expand All @@ -117,7 +116,7 @@ jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up MATLAB
Expand Down Expand Up @@ -149,7 +148,7 @@ jobs:
run: |
Compress-Archive -Path staging\* qpalm-matlab-windows.zip
- name: Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: qpalm-matlab-windows
path: qpalm-matlab-windows.zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/toolchain/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runs:
# Cache
- name: Cache tools
id: cache-tools
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /opt
key: ${{ runner.os }}-${{ inputs.pypy }}${{ inputs.python-version }}-${{ inputs.host }}-tools-${{ inputs.tools-version }}-${{ inputs.cmake-version }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/wheel-short-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# Git clone
- name: Install git
run: apt -y update && apt -y install --no-install-recommends git ca-certificates
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
# Tools
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Prepare ccache directory
run: mkdir -p "${{ env.CCACHE_DIR }}"
- name: Cache ccache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ env.HOST }}-${{ matrix.config }}-ccache-${{ github.run_id }}
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
CXXFLAGS: "-fstack-protector-all -mshstk -fcf-protection=full -D_FORTIFY_SOURCE=${{ matrix.config != 'Debug' && '3' || '0' }} -fdiagnostics-color -static-libgcc -static-libstdc++"
# Upload
- name: Upload Wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: whl-${{ env.PYTHON_VERSION }}-${{ matrix.config }}-linux-test
retention-days: 1
Expand All @@ -85,10 +85,10 @@ jobs:
matrix:
config: [RelWithDebInfo, Debug]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: whl-${{ env.PYTHON_VERSION }}-${{ matrix.config }}-linux-test
path: dist
Expand Down
Loading

0 comments on commit 4757349

Please sign in to comment.