Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e57dbf8
chore: i686 is 32-bit, we need 64-bit
kristof-mattei May 18, 2025
13b8275
chore: remove need for build & targetplatform in scripts
kristof-mattei May 19, 2025
9ae25da
Merge pull request #1885 from kristof-mattei/i686-is-wrong
kristof-mattei May 19, 2025
c9718f0
chore(deps): update rui314/setup-mold digest to 67424c1
renovate[bot] May 20, 2025
34a8207
Merge pull request #1887 from kristof-mattei/renovate/rui314-setup-mo…
renovate[bot] May 20, 2025
83002c7
chore: more precise coverage, don't include test/**
kristof-mattei May 20, 2025
adb6e1b
Merge pull request #1888 from kristof-mattei/coverage-more-precise
kristof-mattei May 20, 2025
a7e1e60
chore: make wget more robust
kristof-mattei May 21, 2025
17913c7
Merge pull request #1891 from kristof-mattei/wget-retry
kristof-mattei May 21, 2025
c85dd07
chore: remove customization, packages now work oob with binstall
kristof-mattei May 21, 2025
63589a8
Merge pull request #1890 from kristof-mattei/remove-customization-for…
kristof-mattei May 21, 2025
dc27ba1
chore: convention: bash variable names are lowercase
kristof-mattei May 21, 2025
fa89fa2
Merge pull request #1892 from kristof-mattei/lowercase-variable-names
kristof-mattei May 21, 2025
0a075f6
chore: consolidation of scripts
kristof-mattei May 21, 2025
580b880
Merge branch 'main' into lowercase-variable-names
kristof-mattei May 21, 2025
a6a7b2c
chore: move away from env, use output
kristof-mattei May 21, 2025
dceb28a
Merge pull request #1893 from kristof-mattei/lowercase-variable-names
kristof-mattei May 21, 2025
9f84421
Merge branch 'main' into more-variables
kristof-mattei May 21, 2025
64866e5
chore: even more variables
kristof-mattei May 21, 2025
39aecb7
chore: fix output
kristof-mattei May 21, 2025
fbd4f65
Merge pull request #1894 from kristof-mattei/more-variables
kristof-mattei May 21, 2025
d6fd065
chore(deps): update node.js to v22.16.0
renovate[bot] May 21, 2025
83208f1
Merge pull request #1895 from kristof-mattei/renovate/node-22.x
renovate[bot] May 21, 2025
793b007
chore: group variables in single step
kristof-mattei May 21, 2025
958a75b
Merge branch 'main' of https://github.com/kristof-mattei/rust-seed
kristof-mattei May 21, 2025
1c5ac42
Merge pull request #1896 from kristof-mattei/group-vars
kristof-mattei May 21, 2025
1ca21b9
chore: set revision explicitely
kristof-mattei May 21, 2025
b3e2762
Merge branch 'main' of https://github.com/kristof-mattei/rust-seed
kristof-mattei May 21, 2025
e863fc5
Merge pull request #1897 from kristof-mattei/revision
kristof-mattei May 21, 2025
bee1b83
chore(version): v1.3.0
invalid-email-address May 21, 2025
3791382
fix: remove incorrec exit
kristof-mattei May 21, 2025
ec6075e
chore(deps): lock file maintenance
renovate[bot] May 21, 2025
98188c1
Merge pull request #1898 from kristof-mattei/renovate/lock-file-maint…
renovate[bot] May 21, 2025
096c422
chore(version): v1.3.1
invalid-email-address May 21, 2025
f6e2ad9
chore(deps): update npm to >=11.4.1
renovate[bot] May 22, 2025
7425ae4
Merge pull request #1899 from kristof-mattei/renovate/npm-11.x
renovate[bot] May 22, 2025
2d7448c
chore(deps): update rust:1.87.0 docker digest to 893a03d
renovate[bot] May 22, 2025
414423f
Merge pull request #1900 from kristof-mattei/renovate/rust-1.87.0
renovate[bot] May 22, 2025
94f04e2
chore(deps): update codecov/test-results-action action to v1.1.1
renovate[bot] May 22, 2025
02451d5
Merge pull request #1902 from kristof-mattei/renovate/codecov-test-re…
renovate[bot] May 22, 2025
e8cfd8d
chore(deps): update rust:1.87.0 docker digest to cfd9d33
renovate[bot] May 22, 2025
29d7bad
Merge pull request #1901 from kristof-mattei/renovate/rust-1.87.0
renovate[bot] May 22, 2025
b88f13c
chore: fix strip-components, it caused nothing to be placed
kristof-mattei May 23, 2025
44360d4
Merge remote-tracking branch 'upstream/main' into update-from-upstream
kristof-mattei May 23, 2025
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
79 changes: 46 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,35 +96,43 @@ jobs:
working-directory: /tmp
run: |
archive="cargo-binstall-x86_64-unknown-linux-musl.tgz"
wget "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}"

tar -xvf "./${archive}"

rm "./${archive}"

mv ./cargo-binstall ~/.cargo/bin/
wget \
--output-document=- \
--timeout=10 \
--waitretry=3 \
--retry-connrefused \
--progress=dot:mega \
"https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}" \
| tar \
--directory=${HOME}/.cargo/bin/ \
--strip-components=0 \
--no-overwrite-dir \
--extract \
--verbose \
--gunzip \
--file=-

- name: Install cocogitto to get the next version number
shell: bash
run: |
cargo binstall --no-confirm cocogitto --target x86_64-unknown-linux-musl --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ bin }" --pkg-fmt tgz
cargo binstall --no-confirm cocogitto

- name: Calculate next version
shell: bash
id: version
run: |
VERSION="$(cog bump --auto --dry-run || true)"
version="$(cog bump --auto --dry-run || true)"

if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "New version: ${VERSION}"
if [[ "${version}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "New version: ${version}"
else
VERSION="v$(cog -v get-version)"
version="v$(cog -v get-version)"

echo "No version generated, defaulting to latest tag: ${VERSION}"
echo "No version generated, defaulting to latest tag: ${version}"
fi

# remove v
VERSION="${VERSION//v/}"
version="${version//v/}"

# store
echo "version=${VERSION}" >> ${GITHUB_OUTPUT}
Expand Down Expand Up @@ -331,36 +339,41 @@ jobs:
working-directory: /tmp
run: |
archive="cargo-binstall-x86_64-unknown-linux-musl.tgz"
wget "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}"

tar -xvf "./${archive}"

rm "./${archive}"

mv ./cargo-binstall ~/.cargo/bin/

- name: Install nextest, custom test runner, with native support for junit
wget \
--output-document=- \
--timeout=10 \
--waitretry=3 \
--retry-connrefused \
--progress=dot:mega \
"https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}" \
| tar \
--directory=${HOME}/.cargo/bin/ \
--strip-components=0 \
--no-overwrite-dir \
--extract \
--verbose \
--gunzip \
--file=-

- name: Install nextest, custom test runner, with native support for junit and grcov
shell: bash
run: |
cargo binstall --no-confirm cargo-nextest;

- name: Install grcov
shell: bash
run: |
cargo binstall --no-confirm grcov --pkg-url "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.bz2" --pkg-fmt tbz2 --bin-dir "{ bin }";
cargo binstall --no-confirm cargo-nextest grcov

- name: Build with instrumentation support
shell: bash
env:
RUSTFLAGS: "${{ env.RUSTFLAGS }} --allow=warnings -C instrument-coverage"
RUSTFLAGS: "${{ env.RUSTFLAGS }} --allow=warnings -Cinstrument-coverage"
# build-* ones are not parsed by grcov
LLVM_PROFILE_FILE: "profiling/build-%p-%m.profraw"
run: |
cargo build --all-targets --all-features --workspace --verbose

- name: Run nextest
shell: bash
id: tests
env:
RUSTFLAGS: "${{ env.RUSTFLAGS }} --allow=warnings -C instrument-coverage"
RUSTFLAGS: "${{ env.RUSTFLAGS }} --allow=warnings -Cinstrument-coverage"
LLVM_PROFILE_FILE: "profiling/profile-%p-%m.profraw"
run: |
cargo nextest run --profile ci --no-fail-fast --all-targets --all-features --workspace
Expand All @@ -376,7 +389,7 @@ jobs:
- name: Run grcov
shell: bash
run: |
grcov $(find profiling -name "profile-*.profraw" -print) --source-dir . --binary-path ./target/debug/ --output-type lcov --branch --ignore-not-existing --llvm --keep-only "src/**" --keep-only "tests/**" --output-path ./reports/lcov.info
grcov $(find . -name "profile-*.profraw" -print) --source-dir . --binary-path ./target/debug/ --output-type lcov --branch --ignore-not-existing --llvm --keep-only "src/**" --output-path ./reports/lcov.info

- name: Upload coverage results (to Codecov.io)
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
Expand Down Expand Up @@ -405,7 +418,7 @@ jobs:
# we don't know which subsection it belongs in GitHub
# so we explicitly fail this one
# which will fail All Done
exit 1;
exit 1

cargo-clippy-and-report:
name: Cargo clippy (and report)
Expand Down
24 changes: 16 additions & 8 deletions .github/workflows/lint-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,26 @@ jobs:
working-directory: /tmp
run: |
archive="cargo-binstall-x86_64-unknown-linux-musl.tgz"
wget "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}"

tar -xvf "./${archive}"

rm "./${archive}"

mv ./cargo-binstall ~/.cargo/bin/
wget \
--output-document=- \
--timeout=10 \
--waitretry=3 \
--retry-connrefused \
--progress=dot:mega \
"https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}" \
| tar \
--directory=${HOME}/.cargo/bin/ \
--strip-components=0 \
--no-overwrite-dir \
--extract \
--verbose \
--gunzip \
--file=-

- name: Install cocogitto to get the next version number
shell: bash
run: |
cargo binstall --no-confirm cocogitto --target x86_64-unknown-linux-musl --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ bin }" --pkg-fmt tgz
cargo binstall --no-confirm cocogitto

- name: Check the commits
shell: bash
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/publish-crate-after-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Publish crate

env: {}

concurrency:
group: "${{ github.workflow }}"
cancel-in-progress: false # last one must win in case of multiple releases
Expand All @@ -14,6 +12,9 @@ on:
permissions:
contents: read

env:
CARGO_TERM_COLOR: always

jobs:
repo-has-crate:
name: Repo publishes crate?
Expand All @@ -26,8 +27,8 @@ jobs:
id: determine
shell: bash
run: |
HAS_CRATE="${{ vars.HAS_CRATE }}"
echo "has_crate=${HAS_CRATE:-false}" >> ${GITHUB_OUTPUT}
has_crate="${{ vars.HAS_CRATE }}"
echo "has_crate=${has_crate:-false}" >> ${GITHUB_OUTPUT}

publish-crate:
name: Publish crate
Expand Down Expand Up @@ -81,12 +82,12 @@ jobs:
shell: bash
id: version
run: |
VERSION="${{ github.ref_name }}"
version="${{ github.ref_name }}"
# remove v
VERSION="${VERSION//v/}"
version="${version//v/}"

# store
cargo set-version ${VERSION}
cargo set-version ${version}

# debug
cat Cargo.toml
Expand Down
41 changes: 25 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: Release

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

concurrency:
group: "${{ github.workflow }}"
cancel-in-progress: true # only last step is important, which runs or doesn't
Expand All @@ -19,6 +13,13 @@ permissions:
issues: write
pull-requests: write

env:
CARGO_TERM_COLOR: always
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:
release:
name: Release
Expand Down Expand Up @@ -71,18 +72,26 @@ jobs:
working-directory: /tmp
run: |
archive="cargo-binstall-x86_64-unknown-linux-musl.tgz"
wget "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}"

tar -xvf "./${archive}"

rm "./${archive}"

mv ./cargo-binstall ~/.cargo/bin/
wget \
--output-document=- \
--timeout=10 \
--waitretry=3 \
--retry-connrefused \
--progress=dot:mega \
"https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}" \
| tar \
--directory=${HOME}/.cargo/bin/ \
--strip-components=0 \
--no-overwrite-dir \
--extract \
--verbose \
--gunzip \
--file=-

- name: Install cocogitto to get the next version number
shell: bash
run: |
cargo binstall --no-confirm cocogitto --target x86_64-unknown-linux-musl --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ bin }" --pkg-fmt tgz
cargo binstall --no-confirm cocogitto

- name: Bump
shell: bash
Expand All @@ -93,8 +102,8 @@ jobs:

cog bump --auto

VERSION="v$(cog -v get-version)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
version="v$(cog -v get-version)"
echo "version=$version" >> ${GITHUB_OUTPUT}

git push

Expand Down
45 changes: 27 additions & 18 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
name: Test Release

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

on:
workflow_dispatch: # releasing is manual as we don't want to release every time

Expand All @@ -14,6 +8,13 @@ permissions:
issues: read
pull-requests: read

env:
CARGO_TERM_COLOR: always
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}

jobs:
test-release:
name: Test Release
Expand Down Expand Up @@ -65,18 +66,26 @@ jobs:
working-directory: /tmp
run: |
archive="cargo-binstall-x86_64-unknown-linux-musl.tgz"
wget "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}"

tar -xvf "./${archive}"

rm "./${archive}"

mv ./cargo-binstall ~/.cargo/bin/
wget \
--output-document=- \
--timeout=10 \
--waitretry=3 \
--retry-connrefused \
--progress=dot:mega \
"https://github.com/cargo-bins/cargo-binstall/releases/latest/download/${archive}" \
| tar \
--directory=${HOME}/.cargo/bin/ \
--strip-components=0 \
--no-overwrite-dir \
--extract \
--verbose \
--gunzip \
--file=-

- name: Install cocogitto to get the next version number
shell: bash
run: |
cargo binstall --no-confirm cocogitto --target x86_64-unknown-linux-musl --pkg-url "{ repo }/releases/download/{ version }/{ name }-{ version }-{ target }.tar.gz" --bin-dir "{ bin }" --pkg-fmt tgz
cargo binstall --no-confirm cocogitto

- name: Bump
shell: bash
Expand All @@ -87,12 +96,12 @@ jobs:

cog bump --auto

VERSION="v$(cog -v get-version)"
echo "version=$VERSION" >> $GITHUB_OUTPUT
version="v$(cog -v get-version)"
echo "version=${version}" >> ${GITHUB_OUTPUT}

cog changelog --at ${VERSION} > GITHUB_CHANGELOG.md
cog changelog --at ${version} > GITHUB_CHANGELOG.md

echo "New version: ${VERSION}"
echo "New version: ${version}"

echo "Changelog: "

Expand Down
29 changes: 0 additions & 29 deletions build.sh

This file was deleted.

Loading