Skip to content

Commit

Permalink
ci: use blacksmith runners
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Sep 23, 2024
1 parent 624c704 commit dac067f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 35 deletions.
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: 6 additions & 7 deletions .github/workflows/build-docker-image-and-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ 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"}
- {os: "blacksmith-2vcpu-ubuntu-2204", arch: "arm64"}

permissions:
contents: write
Expand Down Expand Up @@ -55,7 +55,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 +74,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 +146,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 +198,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 +230,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
20 changes: 7 additions & 13 deletions .github/workflows/check-go-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,35 @@ on:

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
4 changes: 2 additions & 2 deletions .github/workflows/check-internal-deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:

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
4 changes: 2 additions & 2 deletions .github/workflows/check-proto-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:

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: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:

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
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ on:

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

0 comments on commit dac067f

Please sign in to comment.