diff options
Diffstat (limited to '.github/workflows/build.yml')
| -rw-r--r-- | .github/workflows/build.yml | 35 | +11 −24 |
1 files changed, 11 insertions, 24 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4078821..a8ba779 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,13 +10,6 @@ on: pull_request: branches: [main] -permissions: - contents: read - -concurrency: - group: tesor-build-${{ github.ref }} - cancel-in-progress: true - env: CARGO_TERM_COLOR: always RELEASE_TAG: nightly @@ -37,15 +30,9 @@ jobs: run: mise bootstrap --locked --yes --update - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 - - name: formatting + - name: Check formatting run: cargo fmt --all --check - - name: shellcheck - run: shellcheck pkg/scripts/*.sh tests/smoke/*.sh - - - name: clippy - run: cargo clippy --workspace --all-targets --all-features --release --locked -- -D warnings - build: name: Build (${{ matrix.arch }}) runs-on: ${{ matrix.runner }} @@ -70,13 +57,13 @@ jobs: run: mise bootstrap --locked --yes --update - uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2 - - run: cargo clippy --workspace --locked --all-targets --all-features --release -- -D warnings + - run: cargo clippy --all-targets --all-features --release -- -D warnings + - run: cargo build --release - run: cargo test --all-features --release --locked - - run: cargo build --package tesor --bin tesor --release --locked - name: Build packages run: | - PKG_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "tesor") | .version') + PKG_VERSION=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[] | select(.name == "recluse") | .version') if [[ "$GITHUB_REF" == refs/tags/v* ]]; then VERSION="${GITHUB_REF_NAME#v}" if [[ "$VERSION" != "$PKG_VERSION" ]]; then @@ -114,7 +101,7 @@ jobs: - uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 with: name: binary-${{ matrix.arch }} - path: target/release/tesor + path: target/release/recluse smoke: name: Smoke tests @@ -138,7 +125,7 @@ jobs: - name: Run smoke tests against local instance run: | - chmod +x target/release/tesor + chmod +x target/release/recluse ./tests/smoke/run-local.sh publish: @@ -146,7 +133,7 @@ jobs: runs-on: ubuntu-latest needs: [build, smoke] concurrency: - group: package-publish-tesor-nightly + group: package-publish-recluse-nightly cancel-in-progress: false if: github.ref == 'refs/heads/main' permissions: @@ -199,7 +186,7 @@ jobs: - name: Publish package repositories run: | mise run publish -- \ - --service tesor \ + --service recluse \ --channel nightly \ --input dist \ deb rpm @@ -275,7 +262,7 @@ jobs: shell: bash run: | version="${{ steps.artifact.outputs.version }}" - image="ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/tesor" + image="ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/recluse" tags=( --tag "$image:sha-$GITHUB_SHA" --tag "$image:$version" @@ -302,11 +289,11 @@ jobs: --context . \ --file Dockerfile \ --platform linux/amd64,linux/arm64 \ - --cache-scope tesor \ + --cache-scope recluse \ "${tags[@]}" "${labels[@]}" "${image_output[@]}" mise run chart -- \ - --chart charts/tesor \ + --chart charts/recluse \ --version "$version" \ --app-version "$version" \ "${chart_output[@]}" |
