aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml33
1 files changed, 20 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 81151f17..bcb16381 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,23 +2,21 @@ name: Build
on:
push:
- # Ignore when there are only changes done too one of these paths
- paths-ignore:
- - "**.md"
- - "**.txt"
- - "azure-pipelines.yml"
- - "docker/**"
- - "hooks/**"
- - "tools/**"
pull_request:
# Ignore when there are only changes done too one of these paths
paths-ignore:
- "**.md"
- "**.txt"
+ - ".dockerignore"
+ - ".env.template"
+ - ".gitattributes"
+ - ".gitignore"
- "azure-pipelines.yml"
- "docker/**"
- "hooks/**"
- "tools/**"
+ - ".github/FUNDING.yml"
+ - ".github/ISSUE_TEMPLATE/**"
jobs:
build:
@@ -91,7 +89,7 @@ jobs:
with:
profile: minimal
target: ${{ matrix.target-triple }}
- components: clippy
+ components: clippy, rustfmt
# End Uses the rust-toolchain file to determine version
@@ -113,6 +111,15 @@ jobs:
# End Run cargo clippy
+ # Run cargo fmt
+ - name: '`cargo fmt`'
+ uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --all -- --check
+ # End Run cargo fmt
+
+
# Build the binary
- name: '`cargo build --release --features ${{ matrix.features }} --target ${{ matrix.target-triple }}`'
uses: actions-rs/cargo@v1
@@ -126,8 +133,8 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
- name: bitwarden_rs-${{ matrix.target-triple }}${{ matrix.ext }}
- path: target/${{ matrix.target-triple }}/release/bitwarden_rs${{ matrix.ext }}
+ name: vaultwarden-${{ matrix.target-triple }}${{ matrix.ext }}
+ path: target/${{ matrix.target-triple }}/release/vaultwarden${{ matrix.ext }}
# End Upload artifact to Github Actions
@@ -138,7 +145,7 @@ jobs:
# uses: Shopify/upload-to-release@1
# if: startsWith(github.ref, 'refs/tags/')
# with:
- # name: bitwarden_rs-${{ matrix.target-triple }}${{ matrix.ext }}
- # path: target/${{ matrix.target-triple }}/release/bitwarden_rs${{ matrix.ext }}
+ # name: vaultwarden-${{ matrix.target-triple }}${{ matrix.ext }}
+ # path: target/${{ matrix.target-triple }}/release/vaultwarden${{ matrix.ext }}
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# End Upload to github actions release