Skip to content

Commit

Permalink
build noble amd64 debs
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Sep 19, 2024
1 parent a7fc7b4 commit 0a83a9c
Showing 1 changed file with 62 additions and 4 deletions.
66 changes: 62 additions & 4 deletions .github/workflows/build-ubuntu-amd64-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,64 @@ on:
- "*"

jobs:
build-focal-amd64-package:
runs-on: ubuntu-20.04
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- run: go version

- name: Build the avalanchego binaries
run: ./scripts/build.sh

- name: Install aws cli
run: sudo snap install aws-cli --classic

- name: Try to get tag from git
if: "${{ github.event.inputs.tag == '' }}"
id: get_tag_from_git
run: |
echo "TAG=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_ENV"
shell: bash

- name: Try to get tag from workflow dispatch
if: "${{ github.event.inputs.tag != '' }}"
id: get_tag_from_workflow
run: |
echo "TAG=${{ github.event.inputs.tag }}" >> "$GITHUB_ENV"
shell: bash

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_DEPLOY_SA_ROLE_ARN }}
role-session-name: githubrolesession
aws-region: us-east-1

- name: Create debian package
run: ./.github/workflows/build-deb-pkg.sh
env:
PKG_ROOT: /tmp/avalanchego
TAG: ${{ env.TAG }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "amd64"
RELEASE: "focal"

- name: Save as Github artifact
uses: actions/upload-artifact@v4
with:
name: focal
path: /tmp/avalanchego/avalanchego-${{ env.TAG }}-amd64.deb

- name: Cleanup
run: |
rm -rf ./build
rm -rf /tmp/avalanchego
build-jammy-amd64-package:
runs-on: ubuntu-22.04
permissions:
Expand Down Expand Up @@ -69,8 +127,8 @@ jobs:
rm -rf ./build
rm -rf /tmp/avalanchego
build-focal-amd64-package:
runs-on: ubuntu-20.04
build-noble-amd64-package:
runs-on: ubuntu-24.04
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -114,12 +172,12 @@ jobs:
TAG: ${{ env.TAG }}
BUCKET: ${{ secrets.BUCKET }}
ARCH: "amd64"
RELEASE: "focal"
RELEASE: "noble"

- name: Save as Github artifact
uses: actions/upload-artifact@v4
with:
name: focal
name: noble
path: /tmp/avalanchego/avalanchego-${{ env.TAG }}-amd64.deb

- name: Cleanup
Expand Down

0 comments on commit 0a83a9c

Please sign in to comment.