diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6031f124..a2c14b1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: name: Lint runs-on: ubuntu-22.04 steps: - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: "1.21" - uses: actions/checkout@v4 @@ -28,7 +28,7 @@ jobs: os: [ubuntu-22.04] steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - run: go mod download @@ -44,31 +44,11 @@ jobs: fetch-depth: 0 path: eigenlayer-cli - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: "1.21" - - name: Set up arm64 cross compiler - run: | - sudo apt-get -y update - sudo apt-get -y install gcc-aarch64-linux-gnu - - name: Checkout osxcross - uses: actions/checkout@v4 - with: - repository: tpoechtrager/osxcross - path: osxcross - - name: Build osxcross - run: | - sudo apt-get -y install clang llvm-dev libxml2-dev uuid-dev libssl-dev bash patch make tar xz-utils bzip2 gzip sed cpio libbz2-dev - cd osxcross - wget https://github.com/joseluisq/macosx-sdks/releases/download/12.3/$MACOS_SDK_FNAME -O tarballs/$MACOS_SDK_FNAME - echo $MACOS_SDK_CHECKSUM tarballs/$MACOS_SDK_FNAME | sha256sum -c - - UNATTENDED=1 ./build.sh - echo $PWD/target/bin >> $GITHUB_PATH - env: - MACOS_SDK_FNAME: MacOSX12.3.sdk.tar.xz - MACOS_SDK_CHECKSUM: 3abd261ceb483c44295a6623fdffe5d44fc4ac2c872526576ec5ab5ad0f6e26c - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 2fc81227..53a9adb3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,26 +14,15 @@ builds: - -X 'github.com/Layr-Labs/eigenlayer-cli/pkg/rewards.testnetUrl={{.Env.EIGENLAYER_BACKEND_TESTNET_URL}}' # windows is ignored by default, as the `goos` field by default only # contains linux and darwin + env: + - CGO_ENABLED=0 goos: - linux - darwin goarch: - amd64 - arm64 - overrides: - - goos: linux - goarch: arm64 - env: - - CC=aarch64-linux-gnu-gcc - - goos: darwin - goarch: arm64 - env: - - CC=oa64-clang - - goos: darwin - goarch: amd64 - goamd64: v1 - env: - - CC=o64-clang + release: # Repo in which the release will be created. # Default is extracted from the origin remote URL or empty if its private hosted.