diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5abf05b6a..c39e55ed2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,9 @@ jobs: image: ${{ matrix.container }} steps: + # https://github.com/actions/runner/issues/3210 + - run: echo "$PATH" >> "$GITHUB_PATH" + if: ${{ contains(matrix.container, 'opensuse') }} - run: echo "WILD_TEST_CONFIG=test-config-ci.toml" >> $GITHUB_ENV - run: echo "WILD_TEST_CROSS=all" >> $GITHUB_ENV if: ${{ matrix.test-qemu }} @@ -67,12 +70,6 @@ jobs: if: ${{ contains(matrix.container, 'opensuse') }} - run: apk add build-base lld clang clang-extra-tools bash curl tar if: ${{ contains(matrix.container, 'alpine') }} - - name: Install Taplo (x86_64) - if: ${{ runner.arch == 'X64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - - name: Install Taplo (AArch64) - if: ${{ runner.arch == 'ARM64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-aarch64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - uses: actions/checkout@v6 with: persist-credentials: false @@ -87,6 +84,8 @@ jobs: - uses: Swatinem/rust-cache@v2 with: key: ${{ runner.os }}-${{ matrix.container }}-${{ matrix.runs-on }} + - name: Install taplo + uses: taiki-e/install-action@taplo - run: cargo build --profile ci --workspace --no-default-features - run: cargo test --profile ci --features plugins if: ${{ matrix.test-plugins }} @@ -190,12 +189,6 @@ jobs: timeout-minutes: 10 steps: - run: sudo apt-get update && sudo apt-get -y install gcc g++ clang clang-format lld curl - - name: Install Taplo (x86_64) - if: ${{ runner.arch == 'X64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - - name: Install Taplo (AArch64) - if: ${{ runner.arch == 'ARM64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-aarch64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - uses: actions/checkout@v6 with: persist-credentials: false @@ -203,7 +196,7 @@ jobs: id: rust-toolchain - uses: taiki-e/install-action@v2 with: - tool: cargo-hack,cargo-minimal-versions + tool: cargo-hack,cargo-minimal-versions,taplo - uses: Swatinem/rust-cache@v2 - run: cargo minimal-versions --direct test --profile ci @@ -256,22 +249,6 @@ jobs: - run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" - run: yamlfmt -lint . - taplo: - name: TOML format - runs-on: ubuntu-24.04 - timeout-minutes: 10 - steps: - - uses: actions/checkout@v6 - with: - persist-credentials: false - - name: Install Taplo (x86_64) - if: ${{ runner.arch == 'X64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - - name: Install Taplo (AArch64) - if: ${{ runner.arch == 'ARM64' }} - run: curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-aarch64.gz | gzip -d - | install -m 755 /dev/stdin /usr/local/bin/taplo - - run: taplo format --check --diff - spelling: name: Spell Check with Typos runs-on: ubuntu-24.04 diff --git a/taplo.toml b/taplo.toml index fb96acae6..b3b3b40af 100644 --- a/taplo.toml +++ b/taplo.toml @@ -1,5 +1 @@ -exclude = [ - ".cargo-home/**", - "external_test_suites/mold/third-party/blake3/Cargo.toml", - "target/**", -] +exclude = [".cargo-home/**", "external_test_suites/**", "target/**"]