Skip to content

Commit

Permalink
fix: only on push to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Amninder Kaur committed Sep 7, 2023
1 parent 1823e77 commit 3637b46
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 38 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@ name: release app binary on tag
# push to branch
on:
push:
branches:
- master
- feature/*
- release/*
- hotfix/*
- bugfix/*
- chore/*
- ci/*
- docs/*
- refactor/*
- style/*
- test/*
- wip/*
- revert/*
- fix/*
- perf/*
- revert/*

jobs:
build:
Expand Down
36 changes: 15 additions & 21 deletions .github/workflows/rust_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +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: |
apt -qq list libsasl2-modules-gssapi-mit libsasl2-dev libssl-dev
sudo apt-get install libssl-dev
sudo apt-get install libsasl2-dev
- run: rustup component add rustfmt clippy
- name: cargo clean
run: cargo clean
- name: cargo build
run: cargo build
- name: pre-commit checks
#access scripts from scripts folder
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
4 changes: 4 additions & 0 deletions scripts/ubuntu-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e

sudo apt-get update && sudo apt-get install -y libsasl2-dev

0 comments on commit 3637b46

Please sign in to comment.