Skip to content

Commit

Permalink
feat: beatforge manifest + ci
Browse files Browse the repository at this point in the history
Co-authored-by: sargon64 <sargon64@tutanota.com>
  • Loading branch information
ChecksumDev and sargon64 committed Aug 17, 2023
1 parent 84ead2d commit d1f0f7f
Show file tree
Hide file tree
Showing 12 changed files with 351 additions and 181 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- main
pull_request:
branches:
- main

name: Build
permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: set up cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Build
run: cargo build --release

- name: Test
run: cargo test --release
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Automatic versioning

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: rust
package-name: cli
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
Loading

0 comments on commit d1f0f7f

Please sign in to comment.