Skip to content

Commit 31e5a1b

Browse files
chore(ci): bring workflows from main to release branch (#1840)
## Problem We want workflows on main and release branch to be in harmony. This is especially required for CD. ## Solution Pull in recent changes from main.
1 parent 11c81e3 commit 31e5a1b

File tree

5 files changed

+47
-6
lines changed

5 files changed

+47
-6
lines changed

.github/workflows/cd-badger.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: cd-badger
22
on: workflow_dispatch
33
jobs:
4-
badger-build:
5-
runs-on: ubuntu-latest
4+
badger-build-amd64:
5+
runs-on: ubuntu-20.04
66
steps:
77
- uses: actions/checkout@v3
88
- name: Get Go Version
@@ -42,3 +42,44 @@ jobs:
4242
path: |
4343
badger/badger-checksum-linux-amd64.sha256
4444
badger/badger-linux-amd64.tar.gz
45+
badger-build-arm64:
46+
runs-on: [self-hosted, ARM64]
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Get Go Version
50+
run: |
51+
#!/bin/bash
52+
GOVERSION=$({ [ -f .go-version ] && cat .go-version; })
53+
echo "GOVERSION=$GOVERSION" >> $GITHUB_ENV
54+
- name: Set up Go
55+
uses: actions/setup-go@v3
56+
with:
57+
go-version: ${{ env.GOVERSION }}
58+
- name: Set Badger Release Version
59+
run: |
60+
#!/bin/bash
61+
GIT_BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
62+
if [[ "$GIT_BRANCH_NAME" == "release/v"* ]];
63+
then
64+
echo "this is a release branch"
65+
else
66+
echo "this is NOT a release branch"
67+
exit 1
68+
fi
69+
BADGER_RELEASE_VERSION=$(git rev-parse --abbrev-ref HEAD | sed 's/release\///')
70+
echo "making a new release for "$BADGER_RELEASE_VERSION
71+
echo "BADGER_RELEASE_VERSION=$BADGER_RELEASE_VERSION" >> $GITHUB_ENV
72+
- name: Fetch dependencies
73+
run: sudo apt-get -y install build-essential
74+
- name: Build badger linux/arm64
75+
run: make badger
76+
- name: Generate SHA for Linux Build
77+
run: cd badger && sha256sum badger-linux-arm64 | cut -c-64 > badger-checksum-linux-arm64.sha256
78+
- name: Tar Archive for Linux Build
79+
run: cd badger && tar -zcvf badger-linux-arm64.tar.gz badger-linux-arm64
80+
- name: Upload Badger Binary Build Artifacts
81+
uses: actions/upload-artifact@v3
82+
with:
83+
path: |
84+
badger/badger-checksum-linux-arm64.sha256
85+
badger/badger-linux-arm64.tar.gz

.github/workflows/ci-badger-bank-tests-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- cron: "0 3 * * *"
99
jobs:
1010
badger-bank:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Get Go Version

.github/workflows/ci-badger-bank-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- cron: "*/30 * * * *"
1313
jobs:
1414
badger-bank:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-20.04
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Get Go Version

.github/workflows/ci-badger-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- cron: "*/30 * * * *"
1313
jobs:
1414
badger-tests:
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-20.04
1616
steps:
1717
- uses: actions/checkout@v3
1818
- name: Get Go Version

.github/workflows/ci-golang-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
go-lint:
1515
name: lint
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-20.04
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Get Go Version

0 commit comments

Comments
 (0)