-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/iliad' into release/0.9
- Loading branch information
Showing
12 changed files
with
145 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Release Binaries | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
pull-requests: write | ||
actions: write | ||
|
||
jobs: | ||
Timestamp: | ||
uses: storyprotocol/gha-workflows/.github/workflows/reusable-timestamp.yml@main | ||
|
||
build: | ||
needs: Timestamp | ||
name: Build Release Assets | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
platform: | ||
[linux-amd64, linux-arm64, darwin-amd64, darwin-arm64] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Display Go version | ||
run: go version | ||
|
||
- name: Display the release tag | ||
run: | | ||
echo "Release tag: ${{ github.event.release.tag_name }}" | ||
- name: Set up environment for cross-compilation | ||
run: | | ||
IFS="-" read -r GOOS GOARCH <<< "${{ matrix.platform }}" | ||
output_name=./build/bin/geth-${{ matrix.platform }} | ||
echo "Building for $GOOS/$GOARCH..." | ||
env GOOS=$GOOS GOARCH=$GOARCH go build -o $output_name ./cmd/geth | ||
- name: Calculate checksum | ||
run: | | ||
sha256sum ./build/bin/geth-${{ matrix.platform }} > ./build/bin/geth-${{ matrix.platform }}.sha256 | ||
- name: Upload binaries and source code to GitHub Release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.event.release.tag_name }} | ||
file: | | ||
./build/bin/geth-${{ matrix.platform }}* | ||
file_glob: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Build and Upload geth Binary | ||
name: Build and Upload geth Binary to ECR | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,45 @@ | ||
name: i386 linux tests | ||
name: Go tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.github/**' | ||
pull_request: | ||
branches: [ master ] | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '.github/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.4 | ||
cache: false | ||
|
||
- name: Cache Go modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-mod-cache-${{ hashFiles('**/go.mod', '**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-mod-cache-latest | ||
- name: Install dependencies | ||
run: | | ||
go mod download | ||
- name: Run tests | ||
run: go test -short ./... | ||
env: | ||
GOOS: linux | ||
GOARCH: 386 | ||
GOARCH: amd64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.