Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/fix pipeline #10

Merged
merged 2 commits into from
Jun 11, 2024
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
25 changes: 25 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Continuous Delivery

permissions:
pull-requests: write
contents: write

on:
push:
branches:
Expand All @@ -8,7 +12,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi

- name: Run Release PR
uses: MarcoIeni/release-plz-action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build:
needs: release
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
Expand Down
25 changes: 3 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
target: wasm32-wasi
components: rustfmt, clippy

- name: Cache dependencies
uses: Swatinem/rust-cache@v2.2.1

- name: Run cargo-audit binary crate
uses: rustsec/audit-check@v1.4.1
with:
Expand All @@ -34,25 +37,3 @@ jobs:
- name: Run Clippy
run: cargo clippy --all-targets --all-features

release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-wasi
components: rustfmt, clippy

- name: Run Release PR
uses: MarcoIeni/release-plz-action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading