Skip to content

Commit

Permalink
Add actionlint (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Sep 5, 2024
1 parent b947c12 commit 083a0b4
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -75,6 +73,34 @@ 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
with:
go-version: stable
- 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
Expand Down

0 comments on commit 083a0b4

Please sign in to comment.