Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GitHub actions #187

Merged
merged 14 commits into from
Nov 22, 2024
26 changes: 12 additions & 14 deletions .github/workflows/ci-ffi-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest # TODO try using grafana runners

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build in Docker
run: make wheel/linux/amd64

Expand All @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
PYTHON_VERSION: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
needs: [ 'linux-build' ]
name: Linux Test
runs-on: ubuntu-latest
Expand All @@ -36,18 +36,18 @@ jobs:
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
steps:
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.PYTHON_VERSION }}
architecture: x64
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "linux.whl"
path: "${{github.workspace}}/python"

- run: "cd ${{ github.workspace }}/python && ls -l"
- run: "cd ${{ github.workspace }}/python && pip install *.whl"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: docker run -d -p4040:4040 grafana/pyroscope
- run: python pyroscope_ffi/python/scripts/tests/test.py

Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: github-hosted-ubuntu-arm64
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build in Docker
run: make wheel/linux/arm64

Expand All @@ -70,8 +70,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Upgrade pip
Expand Down Expand Up @@ -104,15 +104,13 @@ jobs:
runs-on: macos-${{ matrix.macos-version }}

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.76.0
target: ${{ matrix.target }}
profile: minimal
override: true
targets: ${{ matrix.target }}

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11

Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/ci-ffi-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make gem/linux/amd64
- uses: actions/upload-artifact@v4
with:
Expand All @@ -37,16 +37,14 @@ jobs:
RUST_TARGET: ${{ matrix.target }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.76.0
target: ${{ matrix.target }}
profile: minimal
override: true
targets: ${{ matrix.target }}
- run: make gem/mac/${{ matrix.mk-arch }}
- uses: actions/upload-artifact@v4
with:
Expand All @@ -67,13 +65,13 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.RUBY_VERSION }}
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: "linux.gem"
path: "${{github.workspace}}/ruby"
- run: "cd ${{ github.workspace }}/ruby && ls -l"
- run: "cd ${{ github.workspace }}/ruby && gem install *.gem"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run Ruby Script
run: pyroscope_ffi/ruby/scripts/tests/test.rb
env:
Expand Down
33 changes: 14 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'lib-')"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
- name: publish pyroscope crate
continue-on-error: true
run: |
Expand All @@ -26,13 +25,12 @@ jobs:
# runs-on: ubuntu-latest
# if: "startsWith(github.event.release.tag_name, 'cli-')"
# steps:
# - uses: actions/checkout@v3
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - uses: actions-rs/toolchain@v1
# - uses: dtolnay/rust-toolchain@v1
# with:
# toolchain: stable
# override: true
# - name: install libunwind (for pprof)
# run: sudo apt install libunwind8-dev
# - name: publish pyroscope crate
Expand All @@ -45,11 +43,10 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'pprofrs-')"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
- name: publish pprofrs crate
continue-on-error: true
run: |
Expand All @@ -60,11 +57,10 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'rbspy-')"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
- name: publish rbspy crate
continue-on-error: true
run: |
Expand All @@ -75,11 +71,10 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'pyspy-')"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
override: true
- name: publish pyspy crate
continue-on-error: true
run: |
Expand All @@ -90,7 +85,7 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.event.release.tag_name, 'python-')"
steps:
- uses: robinraju/release-downloader@v1.4
- uses: robinraju/release-downloader@v1
with:
tag: ${{ github.event.release.tag_name }}
fileName: "*"
Expand All @@ -99,7 +94,7 @@ jobs:
out-file-path: "dist"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.12.2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Expand All @@ -110,7 +105,7 @@ jobs:
outputs:
files_json: ${{ steps.list-files.outputs.files_json }}
steps:
- uses: robinraju/release-downloader@v1.4
- uses: robinraju/release-downloader@v1
with:
tag: ${{ github.event.release.tag_name }}
fileName: "*"
Expand Down Expand Up @@ -138,7 +133,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- uses: robinraju/release-downloader@v1.4
- uses: robinraju/release-downloader@v1
with:
tag: ${{ github.event.release.tag_name }}
fileName: "*"
Expand Down
42 changes: 19 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/clibuilder-')"
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
- uses: actions/checkout@v4
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -34,8 +34,8 @@ jobs:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/manylinux-')"
steps:
- uses: actions/checkout@v3
- uses: docker/login-action@v2
- uses: actions/checkout@v4
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down Expand Up @@ -63,10 +63,10 @@ jobs:
needs: cli-release
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: docker/login-action@v2
- uses: docker/login-action@v3
name: Login to Docker Hub
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
Expand All @@ -75,7 +75,7 @@ jobs:
- run: DOCKER_EXTRA="--output=." make cli/docker-image

- name: Upload release archive
uses: actions/[email protected].1
uses: actions/[email protected].2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make wheel/linux/amd64
- uses: actions/upload-artifact@v4
with:
Expand All @@ -148,7 +148,7 @@ jobs:
runs-on: github-hosted-ubuntu-arm64
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make wheel/linux/arm64
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -181,16 +181,14 @@ jobs:
runs-on: macos-${{ matrix.macos-version }}

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

- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.76.0
target: ${{ matrix.target }}
profile: minimal
override: true

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -215,9 +213,9 @@ jobs:

steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Upgrade pip
Expand Down Expand Up @@ -261,7 +259,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make gem/linux/amd64
- uses: actions/upload-artifact@v4
with:
Expand All @@ -281,7 +279,7 @@ jobs:
name: Release Linux gem arm64
runs-on: github-hosted-ubuntu-arm64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make gem/linux/arm64
- uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -313,16 +311,14 @@ jobs:
runs-on: macos-${{ matrix.macos-version }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.76.0
target: ${{ matrix.target }}
profile: minimal
override: true

- run: make pyroscope_ffi/clean gem/mac/${{ matrix.mk-arch }}

Expand All @@ -346,7 +342,7 @@ jobs:

steps:
- uses: AutoModality/action-clean@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
with:
Expand Down
Loading