Skip to content

Commit

Permalink
Merge pull request #379 from xrelkd/release/0.16.5
Browse files Browse the repository at this point in the history
Release `0.16.5`
  • Loading branch information
xrelkd authored Apr 6, 2024
2 parents bfc114f + 90b459f commit fa16432
Show file tree
Hide file tree
Showing 40 changed files with 1,256 additions and 1,015 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[codespell]
skip = .git,./target,Cargo.lock
skip = .git,./target,Cargo.lock,flake.lock
ignore-words = ./dev-support/codespell-ignore
check-filenames =
check-hidden =
19 changes: 10 additions & 9 deletions .github/workflows/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ env:
CI: 1
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
MINIO_ACCESS_KEY_ID: ${{ secrets.MINIO_ACCESS_KEY_ID }}
MINIO_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET_ACCESS_KEY }}
SCCACHE_BUCKET: sccache
SCCACHE_ENDPOINT: ${{ secrets.SCCACHE_ENDPOINT }}

concurrency:
group: image-${{ github.ref }}
Expand All @@ -41,6 +37,13 @@ jobs:
with:
submodules: "true"

- name: Configure sccache
uses: actions/github-script@v7
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Install docker-buildx
uses: docker/setup-buildx-action@v3
with:
Expand Down Expand Up @@ -77,11 +80,9 @@ jobs:
pull: true
push: true
set: |
clipcat.args.AWS_ACCESS_KEY_ID=${{ env.MINIO_ACCESS_KEY_ID }}
clipcat.args.AWS_SECRET_ACCESS_KEY=${{ env.MINIO_SECRET_ACCESS_KEY }}
clipcat.args.SCCACHE_BUCKET=${{ env.SCCACHE_BUCKET }}
clipcat.args.SCCACHE_ENDPOINT=${{ env.SCCACHE_ENDPOINT }}
clipcat.args.SCCACHE_S3_USE_SSL=false
clipcat.args.SCCACHE_GHA_ENABLED=on
clipcat.args.ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
clipcat.args.ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
files: |
./dev-support/containers/docker-bake.hcl
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/lints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- name: Install treefmt
run: nix profile install 'nixpkgs#treefmt'
Expand Down Expand Up @@ -72,9 +72,7 @@ jobs:
fetch-depth: 0

- name: Run commitlint
uses: wagoid/commitlint-github-action@v5.4.5
with:
firstParent: false
uses: wagoid/commitlint-github-action@v6.0.0

codespell:
name: Codespell
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- name: Build Nix Flake
run: nix build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
desc: ${{ env.PACKAGE_DESCRIPTION }}

- name: Publish Package Archive
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
draft: false
Expand All @@ -133,7 +133,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish DEB Package
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.arch_deb == 'amd64' }}
with:
draft: false
Expand All @@ -143,7 +143,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish RPM Package
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.arch_rpm == 'x86_64' }}
with:
draft: false
Expand Down
42 changes: 32 additions & 10 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ on:

env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: "sccache"

concurrency:
group: rust-${{ github.ref }}
Expand All @@ -37,7 +39,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Show rustfmt version
run: |
Expand All @@ -56,11 +60,13 @@ jobs:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Pre Cache
run: |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/
- name: Cache
uses: actions/cache@v4
Expand All @@ -69,7 +75,11 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
./target/
key: ${{ runner.os }}-cargo-${{ hashFiles('flake.lock', '**/Cargo.lock') }}

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.4

- name: Show cargo clippy version
run: |
Expand All @@ -96,11 +106,13 @@ jobs:
- uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Pre Cache
run: |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/
- name: Cache
uses: actions/cache@v4
Expand All @@ -109,7 +121,11 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
./target/
key: ${{ runner.os }}-cargo-${{ matrix.mode }}-${{ hashFiles('flake.lock', '**/Cargo.lock') }}

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.4

- name: Show cargo-nextest version
run: |
Expand All @@ -133,11 +149,13 @@ jobs:
submodules: "true"

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v9
uses: DeterminateSystems/nix-installer-action@v10

- uses: DeterminateSystems/magic-nix-cache-action@v4

- name: Pre Cache
run: |
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/
rm -rf ~/.cargo/registry/index/ ~/.cargo/registry/cache/ ~/.cargo/git/db/ ./target/
- name: Cache
uses: actions/cache@v4
Expand All @@ -146,7 +164,11 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
./target/
key: ${{ runner.os }}-cargo-${{ hashFiles('flake.lock', '**/Cargo.lock') }}

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.4

- name: Run cargo doc
run: |
Expand Down
Loading

0 comments on commit fa16432

Please sign in to comment.