Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:

steps:
- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: walshadow
submodules: recursive

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
Comment thread
walsykerem marked this conversation as resolved.
Resolved
with:
components: llvm-tools-preview

Expand All @@ -46,12 +46,12 @@ jobs:
run: echo "version=$(rustc --version | cut -d' ' -f2)" >> "$GITHUB_OUTPUT"

- name: Install cargo-llvm-cov + cargo-nextest
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2
with:
tool: cargo-llvm-cov,cargo-nextest

- name: Cargo cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2
with:
workspaces: walshadow
key: cov
Expand All @@ -71,7 +71,7 @@ jobs:
--archive-file "$RUNNER_TEMP/tests.tar.zst"

- name: Upload test archive
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: nextest-archive
path: ${{ runner.temp }}/tests.tar.zst
Expand Down Expand Up @@ -99,19 +99,19 @@ jobs:
steps:
# Coverage files can fill the runner disk.
- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
large-packages: false
swap-storage: false

- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: walshadow
submodules: recursive

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: ${{ needs.build.outputs.toolchain }}
# cargo-llvm-cov uses tools from this component.
Expand All @@ -120,7 +120,7 @@ jobs:
# nextest runs one process per test and schedules across test
# binaries; `cargo test` runs binaries one at a time.
- name: Install cargo-llvm-cov + cargo-nextest
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2
with:
tool: cargo-llvm-cov,cargo-nextest

Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:
make -C test PG_CONFIG=$PG_CONFIG

- name: Download test archive
uses: actions/download-artifact@v8
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
name: nextest-archive
path: ${{ runner.temp }}
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:

- name: Upload PG module coverage
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: coverage-pgext-pg${{ matrix.pg-major }}
path: walshadow/pgext/coverage
Expand All @@ -273,7 +273,7 @@ jobs:

- name: Upload test artifacts on failure
if: failure()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: test-artifacts-pg${{ matrix.pg-major }}
path: ${{ github.workspace }}/test-artifacts
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:

- name: Upload lcov
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: coverage-pg${{ matrix.pg-major }}
path: walshadow/lcov.info
Expand All @@ -327,14 +327,14 @@ jobs:

steps:
- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: walshadow

# Build failures may not produce coverage data.
- name: Fetch per-major lcov
continue-on-error: true
uses: actions/download-artifact@v8
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
pattern: coverage-pg[0-9]*
path: lcov
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
--legend --quiet --ignore-errors inconsistent,unmapped

- name: Upload merged coverage
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: coverage-merged
path: |
Expand All @@ -393,7 +393,7 @@ jobs:

steps:
- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
path: walshadow
submodules: recursive
Expand All @@ -403,12 +403,12 @@ jobs:
run: git ls-files '*.sh' | xargs shellcheck -x

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
components: clippy, rustfmt

- name: Cargo cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2
with:
workspaces: walshadow
key: lint
Expand All @@ -434,7 +434,7 @@ jobs:
run: cargo doc --no-deps --lib --bins

- name: Install cargo-deny
uses: taiki-e/install-action@v2
uses: taiki-e/install-action@18101caa61cb89118e2ee749786f33c6d1f8a8cb # v2
with:
tool: cargo-deny

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
fail-fast: false
matrix:
pg-major: [16, 17, 18]
uses: docker/github-builder/.github/workflows/build.yml@v1
uses: docker/github-builder/.github/workflows/build.yml@bb1eb9fb69408ac52395fb21f49c6b52d564529a # v1
permissions:
contents: read
packages: write
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ jobs:

steps:
- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
submodules: true

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
targets: ${{ matrix.image.target }}

Expand All @@ -85,7 +85,7 @@ jobs:
# against a newer glibc, and the link fails on symbols like
# __isoc23_sscanf that this image cannot resolve.
- name: Cargo cache
uses: Swatinem/rust-cache@v2
uses: Swatinem/rust-cache@e9d7b9f1e587218970671bac74e5511ed9506e6a # v2
with:
key: release-${{ matrix.image.target }}-${{ matrix.image.runner }}

Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
ls -l dist/*.tar.gz

- name: Upload archive
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: ${{ steps.version.outputs.archive }}
path: dist/*.tar.gz
Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
steps:
# pg-clickhouse-c is a recursive submodule native.o compiles against.
- name: Checkout walshadow
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
submodules: recursive

Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
ls -l dist/*.tar.gz

- name: Upload archive
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: ${{ steps.version.outputs.archive }}
path: dist/*.tar.gz
Expand All @@ -257,7 +257,7 @@ jobs:

steps:
- name: Fetch archives
uses: actions/download-artifact@v8
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
with:
pattern: walshadow-*
path: dist
Expand All @@ -272,7 +272,7 @@ jobs:

# Verify with: gh attestation verify <archive> --repo ClickHouse/walshadow
- name: Attest build provenance
uses: actions/attest-build-provenance@v4
uses: actions/attest-build-provenance@8beda2b7ed98355c0e97c0a63bec38ae472e66c4 # v4
with:
subject-path: dist/*.tar.gz

Expand Down
Loading