Skip to content

Commit

Permalink
fix: gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
sysid committed Sep 1, 2024
1 parent 1c1470d commit e7737be
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
os: [ ubuntu-latest ]
# python-version: [ "3.10", "3.11", "3.12" ]
python-version: [ "3.12" ]
# architecture: [ x86_64, arm64 ]
architecture: [ x86_64 ]
architecture: [ x86_64, arm64 ]
#architecture: [ x86_64 ]

steps:
- uses: actions/checkout@v4
Expand All @@ -39,11 +39,6 @@ jobs:
toolchain: stable
target: ${{ matrix.os == 'ubuntu-latest' && 'x86_64-unknown-linux-gnu' || matrix.architecture == 'x86_64' && 'x86_64-apple-darwin' || 'aarch64-apple-darwin' }}

- name: Display directory tree (3 levels)
run: |
pwd
tree -L 3
- name: Build Rust binary as a Python package
run: maturin build -m bkmr/Cargo.toml --release --target ${{ matrix.os == 'ubuntu-latest' && 'x86_64-unknown-linux-gnu' || matrix.architecture == 'x86_64' && 'x86_64-apple-darwin' || 'aarch64-apple-darwin' }}

Expand All @@ -60,11 +55,11 @@ jobs:
- name: Download package artifacts
uses: actions/download-artifact@v4
with:
path: ./target/wheels
path: ./bkmr/target/wheels
merge-multiple: true

- name: Display structure of downloaded files
run: ls -R ./target/wheels
run: ls -R ./bkmr/target/wheels

- name: Install dependencies
run: pip install twine
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/xxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
name: CI

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
#push:
# branches:
# - main
# tags:
# - '*'
#pull_request:
# branches:
# - main
workflow_dispatch:

permissions:
Expand Down

0 comments on commit e7737be

Please sign in to comment.