From 6dfcd97e33db3ea9eea4caedc34be9f2cd886180 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:07:11 +1000 Subject: [PATCH 1/5] Add actionlint --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e85b915..7037c1b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,6 +75,32 @@ jobs: name: ${{ matrix.crate.name }}-${{ matrix.crate.version }}-${{ matrix.runs-on }} path: '*.tar.gz' + go: + strategy: + fail-fast: false + matrix: + package: + - name: actionlint + import-path: github.com/rhysd/actionlint/cmd/actionlint + version: 'v1.7.1' + runs-on: + - ubuntu-latest + - macos-12 # amd64 + - macos-14 # arm64 + - windows-latest + runs-on: ${{ matrix.runs-on }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v5 + - shell: bash + run: GOBIN="$PWD/bin" go install ${{ matrix.package.import-path }}@${{ matrix.package.version }} + - shell: bash + run: tar cvfz ${{ matrix.package.name }}-${{ matrix.package.version }}-${{ runner.os }}-${{ runner.arch }}.tar.gz -C bin . + - uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.package.name }}-${{ matrix.package.version }}-${{ matrix.runs-on }} + path: '*.tar.gz' + release-create: if: github.ref_name == 'main' needs: complete From dcf59bae4d1fce87c9ba5030be5fb733f6562afb Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:08:04 +1000 Subject: [PATCH 2/5] go builds to needs list of complete --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7037c1b..a83742f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: complete: if: always() - needs: [cargo] + needs: [cargo, go] runs-on: ubuntu-latest steps: - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') From ed210c661c086e53255eb06d4fc0280ca4cf1a1b Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:11:36 +1000 Subject: [PATCH 3/5] fix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a83742f..227d10d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: - name: cargo-workspaces version: '0.2.35' - name: cargo-workspaces - version: '0.3.4' + version: '0.3.6' - name: cargo-hack version: '0.5.28' - name: cargo-set-rust-version From 17c4981185616c500bd2ed2b26e6325078b6084a Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 5 Sep 2024 13:35:38 +1000 Subject: [PATCH 4/5] remove soroban-cli --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 227d10d..c00e851 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,8 +39,6 @@ jobs: version: '0.11.6' - name: cargo-fuzz version: '0.12.0' - - name: soroban-cli - version: '20.0.0-rc.4.1' - name: cargo-readme version: '3.3.1' - name: cargo-semver-checks From 4b7631802234c688d66f9d891658bf887f06c793 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:15:57 +1000 Subject: [PATCH 5/5] fix --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c00e851..40a65ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,6 +90,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v5 + with: + go-version: stable - shell: bash run: GOBIN="$PWD/bin" go install ${{ matrix.package.import-path }}@${{ matrix.package.version }} - shell: bash