Skip to content

update the opendal to newest version #111

update the opendal to newest version

update the opendal to newest version #111

Workflow file for this run

name: Rust Build with Maturin
on: [push, pull_request]
jobs:
build-linux:
name: Build Rust Project on Linux
runs-on: ubuntu-latest
container:
image: ghcr.io/pyo3/maturin
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Build with Maturin
run: |
yum update -y
yum install -y openssl openssl-devel
rustup default stable
maturin build --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-linux
path: dist/*
build-macos-arm:
name: Build Rust Project on macOS Arm
runs-on: macos-14
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
- name: Install Maturin
run: |
python -m pip install maturin
- name: Build with Maturin
run: |
maturin build --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-macos-arm
path: dist/*
build-linux-arm64:
name: Build Rust Project on macOS Arm with Linux to make linux arm64
runs-on: macos-14
steps:
- uses: actions/checkout@v2
name: Checkout code
- name: Install Docker
run: |
brew install podman
- name: Start colima
run: |
podman machine init
podman machine start
- name: Create Dockerfile.build
run: |
cat <<EOF > Dockerfile.build
FROM ghcr.io/pyo3/maturin
RUN yum update -y && yum install -y openssl-devel
EOF
- name: Build build image
run: |
podman build -t docker.io/library/maturin-linux-arm64:latest -f Dockerfile.build .
podman run --rm -v $(pwd):/app -w /app maturin-linux-arm64 --release --features py --out dist
- uses: actions/upload-artifact@v2
with:
name: wheels-linux-arm
path: dist/*