Skip to content

Commit

Permalink
Merge pull request #248 from P403n1x87/ci/bump-ubuntu
Browse files Browse the repository at this point in the history
ci: bump Ubuntu version
  • Loading branch information
P403n1x87 authored Feb 15, 2025
2 parents ce95abd + 09ca4fb commit e8ef5c0
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 74 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
benchmarks:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3

Expand All @@ -27,7 +27,7 @@ jobs:
- name: Compile Austin
run: |
autoreconf --install
./configure --enable-debug-symbols true
./configure --enable-debug-symbols=yes
make
- name: Install runtime dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
build-linux-archs:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
arch: ["armv7", "aarch64", "ppc64le"]
Expand All @@ -27,12 +27,12 @@ jobs:
- uses: actions/checkout@v3
name: Checkout sources

- uses: uraimo/run-on-arch-action@v2.0.5
- uses: uraimo/run-on-arch-action@v2
name: Build Austin on ${{ matrix.arch }}
id: build-on-arch
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
distro: ubuntu22.04
githubToken: ${{ github.token }}
dockerRunArgs: --volume "${GITHUB_WORKSPACE}/artifacts:/artifacts"
setup: |
Expand Down
51 changes: 10 additions & 41 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
check-manpage:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Check docs
steps:
- uses: actions/checkout@v3
Expand All @@ -34,52 +34,21 @@ jobs:
run: git diff -I".* DO NOT MODIFY.*" -I"[.]TH AUSTIN.*" --exit-code src/austin.1

cppcheck-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Static code analysis (Linux)
env:
cppcheck-version: 2.10.3

steps:
- uses: actions/checkout@v3

- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get -y install libpcre3-dev
- name: Restore cppcheck build
id: cppcheck-build-restore
uses: actions/cache/restore@v3
with:
path: |
${{ github.workspace }}/cppcheck
key: ${{ runner.os }}-cppcheck-${{ env.cppcheck-version }}

- name: Check out cppcheck
uses: actions/checkout@v3
with:
repository: danmar/cppcheck
ref: ${{ env.cppcheck-version }}
path: ${{ github.workspace }}/cppcheck

- name: Compile cppcheck
- name: Install cppcheck
run: |
sudo apt-get update
sudo apt-get -y install libpcre3-dev
cd cppcheck
make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function"
cd -
- name: Save cppcheck build
id: cppcheck-build-save
uses: actions/cache/save@v3
with:
path: |
${{ github.workspace }}/cppcheck
key: ${{ runner.os }}-cppcheck-${{ env.cppcheck-version }}
sudo apt-get -y install cppcheck
- name: Check source code
run: ${{ github.workspace }}/cppcheck/cppcheck -q -f --error-exitcode=1 --inline-suppr src
run: cppcheck -q -f --error-exitcode=1 --inline-suppr src

cppcheck-macos:
name: Static code analysis (macOS)
Expand All @@ -94,7 +63,7 @@ jobs:
run: cppcheck -q -f --error-exitcode=1 --inline-suppr --check-level=exhaustive src

codespell:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Codespell
steps:
- uses: actions/checkout@v3
Expand All @@ -110,7 +79,7 @@ jobs:
run: codespell -I .github/workflows/wordlist.txt -S "src/python/*" src

formatting-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Formatting (tests)
steps:
- uses: actions/checkout@v3
Expand All @@ -126,7 +95,7 @@ jobs:
run: black --check --exclude=test/targets test/

linting-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Linting (tests)
steps:
- uses: actions/checkout@v3
Expand All @@ -142,7 +111,7 @@ jobs:
run: flake8 --config test/.flake8 test/

coverage:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Code coverage
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -190,7 +159,7 @@ jobs:
verbose: true

check-cog:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Check cog output
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'v*-*'
jobs:
release-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
name: Release (Linux)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pre_release_arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'v*-*'
jobs:
release-linux-archs:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
arch: ["armv7", "aarch64", "ppc64le"]
Expand All @@ -14,12 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout sources
- uses: uraimo/run-on-arch-action@v2.0.5
- uses: uraimo/run-on-arch-action@v2
name: Generate artifacts on ${{ matrix.arch }}
id: run-tests-on-arch
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
distro: ubuntu24.04
githubToken: ${{ github.token }}
dockerRunArgs: --volume "${GITHUB_WORKSPACE}/artifacts:/artifacts"
setup: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
name: Release (Linux)
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release-linux-archs:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
arch: ["armv7", "aarch64", "ppc64le"]
Expand All @@ -15,12 +15,12 @@ jobs:
- uses: actions/checkout@v3
name: Checkout sources

- uses: uraimo/run-on-arch-action@v2.0.5
- uses: uraimo/run-on-arch-action@v2
name: Run tests on ${{ matrix.arch }}
id: run-tests-on-arch
with:
arch: ${{ matrix.arch }}
distro: ubuntu20.04
distro: ubuntu24.04
githubToken: ${{ github.token }}
dockerRunArgs: --volume "${GITHUB_WORKSPACE}/artifacts:/artifacts"
setup: |
Expand Down
45 changes: 27 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
build-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Build Austin on Linux
steps:
- uses: actions/checkout@v3
Expand All @@ -36,18 +36,19 @@ jobs:
- name: Compile Austin
run: |
autoreconf --install
./configure --enable-debug-symbols true
./configure --enable-debug-symbols=yes
make
- uses: actions/upload-artifact@v4
with:
name: austin-binaries
name: austin-binaries-${{ runner.os }}
overwrite: true
path: |
src/austin
src/austinp
build-linux-musl:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: Build Austin on Linux (musl)
steps:
- uses: actions/checkout@v3
Expand All @@ -63,12 +64,13 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: austin-binaries
name: austin-binaries-${{ runner.os }}-musl
overwrite: true
path: |
src/austin.musl
tests-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

needs: [build-linux, build-linux-musl]

Expand All @@ -86,7 +88,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: austin-binaries
name: austin-binaries-${{ runner.os }}
path: src

- run: chmod +x src/austin && chmod +x src/austinp
Expand Down Expand Up @@ -179,17 +181,22 @@ jobs:
if: always()

wheels-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

needs: build-linux
needs: [build-linux, build-linux-musl]

name: Build Linux wheels
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v4
with:
name: austin-binaries
name: austin-binaries-${{ runner.os }}
path: src

- uses: actions/download-artifact@v4
with:
name: austin-binaries-${{ runner.os }}-musl
path: src

- run: chmod +x src/austin && chmod +x src/austinp
Expand Down Expand Up @@ -232,7 +239,8 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
overwrite: true
path: |
src/austin
Expand Down Expand Up @@ -270,7 +278,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
path: src

- run: chmod +x src/austin
Expand Down Expand Up @@ -332,7 +340,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
path: src

- run: chmod +x src/austin
Expand Down Expand Up @@ -373,7 +381,8 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
overwrite: true
path: |
src/austin.exe
Expand All @@ -396,7 +405,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
path: src

- name: Install Python
Expand Down Expand Up @@ -445,7 +454,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: austin-binary
name: austin-binary-${{ runner.os }}
path: src

- uses: actions/setup-python@v4
Expand All @@ -467,7 +476,7 @@ jobs:
--files austin.exe:src/austin.exe
validation:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

needs: build-linux

Expand Down Expand Up @@ -501,7 +510,7 @@ jobs:
- name: Compile Austin
run: |
autoreconf --install
./configure --enable-debug-symbols true
./configure --enable-debug-symbols=yes
make
- name: Install runtime dependencies
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
COPY . /austin
RUN apt-get update && \
apt-get install -y autoconf build-essential libunwind-dev binutils-dev libiberty-dev zlib1g-dev && \
Expand Down
Loading

0 comments on commit e8ef5c0

Please sign in to comment.