Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use blacksmith runners #2184

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-binaries-and-push-to-r2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
build-and-upload:
name: Build binary and push to R2
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
permissions:
contents: write
packages: write
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/build-docker-image-and-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ jobs:
matrix:
go-version:
- 1.23
os: [ubuntu-22.04, macos-latest]
os: [blacksmith-2vcpu-ubuntu-2204, macos-latest]
arch: [amd64, arm64]
exclude:
- {os: "ubuntu-22.04", arch: "arm64"}

permissions:
contents: write
Expand Down Expand Up @@ -55,7 +53,7 @@ jobs:
submodules: recursive

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
uses: useblacksmith/setup-go@v6
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -74,7 +72,7 @@ jobs:
WASM: ${{ github.event.inputs.wasm }}
IBC_WASM_HOOKS: ${{ github.event.inputs.ibc-wasm-hooks }}
run: |
OS=$(echo "$OS_TYPE" | sed -e 's/ubuntu-22.04/linux/; s/macos-latest/darwin/')
OS=$(echo "$OS_TYPE" | sed -e 's/blacksmith-2vcpu-ubuntu-2204/linux/; s/macos-latest/darwin/')
make ARCH="$ARCH" build-binaries-multiarch
mv ./bin/axelard ./bin/axelard-"$OS"-"$ARCH"-"$SEMVER"
gpg --armor --detach-sign ./bin/axelard-"$OS"-"$ARCH"-"$SEMVER"
Expand Down Expand Up @@ -146,7 +144,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [blacksmith-2vcpu-ubuntu-2204]
platform: [linux/amd64]

permissions:
Expand Down Expand Up @@ -198,7 +196,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
os: [blacksmith-2vcpu-ubuntu-2204]

permissions:
contents: write
Expand Down Expand Up @@ -230,4 +228,3 @@ jobs:
env:
TAGS: axelarnet/axelar-core:${{ github.event.inputs.tag }}
COSIGN_EXPERIMENTAL: 1

6 changes: 1 addition & 5 deletions .github/workflows/build-latest-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ on:

jobs:
build-and-push-latest-docker-image:
strategy:
matrix:
os:
- ubuntu-22.04
runs-on: ${{ matrix.os }}
runs-on: blacksmith-2vcpu-ubuntu-2204
permissions:
id-token: write
contents: read
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/check-go-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,41 @@ name: Check format and go generated files up-to-date
on:
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-go-generate-up-to-date:
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
uses: useblacksmith/setup-go@v6
with:
go-version: 1.23

- name: Install Python
uses: actions/setup-python@v3

- name: Cache Python
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: pip-cache
uses: useblacksmith/setup-python@v6

- name: Checkout code
uses: actions/checkout@v4

- name: Get Bytecode Version
id: bytecode_version
run: echo ::set-output name=VERSION::$(cat contract-version.json | jq -r '.gateway')
run: echo "version=$(cat contract-version.json | jq -r '.gateway')" >> $GITHUB_OUTPUT

- name: Download Gateway Bytecode
run : |
wget "https://github.com/axelarnetwork/axelar-cgp-solidity/releases/download/${{ steps.bytecode_version.outputs.VERSION }}/Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip"
wget "https://github.com/axelarnetwork/axelar-cgp-solidity/releases/download/${{ steps.bytecode_version.outputs.version }}/Bytecode-${{ steps.bytecode_version.outputs.version }}.zip"

- name: Create folder contract-artifacts
run : |
[ ! -d contract-artifacts ] && mkdir contract-artifacts

- name: Unzip Bytecode
run : |
unzip Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip -d ./contract-artifacts
rm Bytecode-${{ steps.bytecode_version.outputs.VERSION }}.zip
unzip Bytecode-${{ steps.bytecode_version.outputs.version }}.zip -d ./contract-artifacts
rm Bytecode-${{ steps.bytecode_version.outputs.version }}.zip

- name: Install prereqs
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-internal-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-internal-deps-up-to-date:
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
uses: useblacksmith/setup-go@v6
with:
go-version: 1.23

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/check-proto-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: Check protobuf generated files up-to-date
on:
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-proto-generate-up-to-date:
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
uses: useblacksmith/setup-go@v6
with:
go-version: 1.23

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Ensure Conventional Commit message
on:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ensure-CC:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/enforce-evm-migration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Ensure EVM module migration when bytecode changes
on:
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ensure-evm-migration:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ name: Linting
on:
- pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v2
uses: useblacksmith/setup-go@v6
with:
go-version: 1.23

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ on:
- main
- releases/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-22.04
runs-on: blacksmith-2vcpu-ubuntu-2204
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Golang with cache
uses: magnetikonline/action-golang-cache@v4
uses: useblacksmith/setup-go@v6
with:
go-version: 1.23

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testnet-catch-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
runs-on: blacksmith-2vcpu-ubuntu-2204

steps:
- name: Checkout
Expand Down
Loading