Skip to content

Commit

Permalink
Fix/failing workflow (#8)
Browse files Browse the repository at this point in the history
* chore: fix failing building

* chore: missing file

* fix: only on push to branch

---------

Co-authored-by: Amninder Kaur <[email protected]>
  • Loading branch information
akaur13 and Amninder Kaur authored Sep 7, 2023
1 parent 7b9c7b9 commit 9916f09
Show file tree
Hide file tree
Showing 13 changed files with 179 additions and 125 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: release app binary on tag

# push to branch
on:
push:

jobs:
build:
uses: ./.github/workflows/rust_build.yml

28 changes: 15 additions & 13 deletions .github/workflows/rust_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ name: rust_build
on:
workflow_call


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: rustup component add rustfmt clippy
- name: cargo build
run: cargo build
- name: pre-commit checks
run: scripts/pre-commit-checks.sh

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- run: scripts/ubuntu-setup.sh
- run: rustup component add rustfmt clippy
- name: cargo build
run: |
cargo clean
cargo build --release
- run: scripts/pre-commit-checks.sh
Loading

0 comments on commit 9916f09

Please sign in to comment.