Skip to content

Commit

Permalink
Add rustreleaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cestef committed Mar 7, 2024
1 parent b5bd5b5 commit 1d95c79
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

permissions:
contents: write

on:
push:
# tags:
# - v[0-9]+.*
workflow_dispatch:

jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
rr_os: linux
rr_arch: arm64
- os: macos-latest
rr_os: darwin
rr_arch: arm64
- os: ubuntu-latest
rr_os: linux
rr_arch: amd64
- os: macos-latest
rr_os: darwin
rr_arch: amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install rustreleaser
uses: cestef/rustreleaser-action@v1.0.0
with:
version: 0.1.8
- name: Build
run: rr -o dist/
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target
.data/*.log
debug.log
/dist
/dist
.DS_Store

6 changes: 3 additions & 3 deletions releaser.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[build]
arch = ["amd64", "arm64"]
os = ["darwin", "linux"]
# arch = ["amd64", "arm64"]
# os = ["darwin", "linux"]
binary = "ppr"
tool = "cross"
tool = "cargo"

[brew]
name = "papier"
Expand Down

0 comments on commit 1d95c79

Please sign in to comment.