Skip to content

Commit

Permalink
Testing again without the build container
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Oct 26, 2024
1 parent f3a7dfa commit 0fb387a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/PRBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,27 @@ on:
branches:
- main
types: [opened, synchronize, reopened, edited]
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install musl and cross-compilation tools
run: |
sudo apt-get update
sudo apt-get install -y musl-tools musl musl-dev
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y g++-aarch64-linux-gnu
sudo apt-get install -y gcc-x86-64-linux-gnu
sudo apt-get install -y g++-x86-64-linux-gnu
sudo apt-get install -y qemu-user-static
sudo apt-get install -y binfmt-support
sudo update-binfmts --enable qemu-aarch64
sudo update-binfmts --display qemu-aarch64
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --display qemu-arm
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,21 @@ permissions: write-all # Necessary for the generate-build-provenance action with
jobs:
build:
runs-on: ubuntu-latest
container:
image: alpine:3.20
steps:
- name: Install Dependencies
- name: Install musl and cross-compilation tools
run: |
apk add --no-cache bash go libc-dev gcc musl-dev
sudo apt-get update
sudo apt-get install -y musl-tools musl musl-dev
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install -y g++-aarch64-linux-gnu
sudo apt-get install -y gcc-x86-64-linux-gnu
sudo apt-get install -y g++-x86-64-linux-gnu
sudo apt-get install -y qemu-user-static
sudo apt-get install -y binfmt-support
sudo update-binfmts --enable qemu-aarch64
sudo update-binfmts --display qemu-aarch64
sudo update-binfmts --enable qemu-arm
sudo update-binfmts --display qemu-armk
- name: Set up Go 1.23
uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 0fb387a

Please sign in to comment.