Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ jobs:
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
if: runner.os != 'Linux'
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: "wheel-${{matrix.os}}"
path: dist
if: runner.os != 'Linux'

Expand Down Expand Up @@ -120,9 +120,9 @@ jobs:
run: |
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: "wheel-cross-${{matrix.target}}"
path: dist

build-freebsd:
Expand All @@ -136,14 +136,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Cache Vagrant box
uses: actions/cache@v3.0.4
uses: actions/cache@v4
with:
path: .vagrant.d
key: ${{ matrix.box }}-vagrant-boxes-20231115-${{ hashFiles('ci/Vagrantfile') }}
restore-keys: |
${{ matrix.box }}-vagrant-boxes-20231115-
- name: Cache Cargo and build artifacts
uses: actions/cache@v3.0.4
uses: actions/cache@v4
with:
path: build-artifacts.tar
key: ${{ matrix.box }}-cargo-20231115-${{ hashFiles('**/Cargo.lock') }}
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
tar xf build-artifacts.tar target/release/py-spy
mv target/release/py-spy py-spy-x86_64-unknown-freebsd
- name: Upload Binaries
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: py-spy-x86_64-unknown-freebsd
path: py-spy-x86_64-unknown-freebsd
Expand Down Expand Up @@ -267,12 +267,18 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheel-*
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Prepare wheels on Linux or Macos
if: runner.os == 'Linux' || runner.os == 'macOS'
run: cp wheel-*/*.whl ./
- name: Prepare wheels on Windows
if: runner.os == 'Windows'
run: copy wheel-*\*.whl .\
- name: Install wheel
run: |
pip install --force-reinstall --no-index --find-links . py-spy
Expand Down Expand Up @@ -311,9 +317,7 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
needs: [test-wheels]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- uses: actions/download-artifact@v4
- name: Create GitHub Release
uses: fnkr/github-action-ghr@v1.3
env:
Expand Down
4 changes: 4 additions & 0 deletions fuzz/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
corpus
artifacts
coverage
Loading
Loading