Skip to content

update cfn-guard to 3.0.0 (#227) #37

update cfn-guard to 3.0.0 (#227)

update cfn-guard to 3.0.0 (#227) #37

name: packages-cfn_guard_rs-CD
on:
push:
tags:
- cfn-guard-rs-v*
jobs:
linux:
strategy:
matrix:
target: [aarch64, x86_64]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
target: ${{ matrix.target }}
args: --release -m packages/cfn_guard_rs/Cargo.toml --sdist -o packages/cfn_guard_rs/dist --find-interpreter
- uses: actions/upload-artifact@v2
with:
name: wheels
path: packages/cfn_guard_rs/dist
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
args: --release -m packages/cfn_guard_rs/Cargo.toml -o packages/cfn_guard_rs/dist --find-interpreter
- uses: actions/upload-artifact@v2
with:
name: wheels
path: packages/cfn_guard_rs/dist
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
args: --release -m packages/cfn_guard_rs/Cargo.toml -o packages/cfn_guard_rs/dist --universal2 --find-interpreter
- uses: actions/upload-artifact@v2
with:
name: wheels
path: packages/cfn_guard_rs/dist
release:
name: Release
runs-on: ubuntu-latest
needs: [macos, windows, linux]
steps:
- uses: actions/download-artifact@v2
with:
name: wheels
- name: Publish to PyPI
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *