Skip to content

Commit

Permalink
feat: also release on mac and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenLoc committed May 11, 2023
1 parent d5359f3 commit 14b8bb5
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test and release

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write # for committing to gh-pages branch.

jobs:
verify:
timeout-minutes: 10
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: just@1
- run: just verify

release:
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: taiki-e/install-action@cargo-binstall
- run: cargo binstall --no-confirm --force cargo-edit
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.REL }}
- run: just release
env:
GITHUB_TOKEN: ${{ secrets.REL }}

44 changes: 44 additions & 0 deletions .github/workflows/release windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test and release

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write # for committing to gh-pages branch.

jobs:
verify:
timeout-minutes: 10
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: just@1
- run: just verify

release:
needs: verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: taiki-e/install-action@cargo-binstall
- run: cargo binstall --no-confirm --force cargo-edit
- uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.REL }}
- run: just release
env:
GITHUB_TOKEN: ${{ secrets.REL }}

0 comments on commit 14b8bb5

Please sign in to comment.