Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jan 16, 2024
1 parent 60fdf0f commit 10a35b7
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,10 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install OpenSSL
run: sudo apt-get install -y libssl-dev
- name: Setup tmate session
if: matrix.target == 'aarch64'
uses: mxschmitt/action-tmate@v3
- name: Install maturin
run: python -m pip install maturin
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
working-directory: yara-x-py
sccache: "true"
manylinux: off
run: maturin build --release --manifest-path yara-x-py/Cargo.toml --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -61,13 +52,10 @@ jobs:
if: runner.os == 'Windows'
shell: bash
run: echo "OPENSSL_DIR=${{ github.workspace }}\\vcpkg\\installed\\x64-windows-static" >> $GITHUB_ENV
- name: Install maturin
run: python -m pip install maturin
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
working-directory: yara-x-py
sccache: "true"
run: maturin build --release --manifest-path yara-x-py/Cargo.toml --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand All @@ -78,19 +66,16 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64]
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install maturin
run: python -m pip install maturin
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
working-directory: yara-x-py
sccache: "true"
run: maturin build --release --manifest-path yara-x-py/Cargo.toml --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 10a35b7

Please sign in to comment.