Update build instructions to reflect Zig dependency (#832)

This commit is contained in:
Evan Simkowitz 2024-09-24 20:46:57 -07:00 committed by GitHub
parent 51debbe3c0
commit f681e9966f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 28 deletions

View File

@ -1,13 +0,0 @@
name: "Setup musl-gcc"
description: "Compile and install musl-gcc from source"
runs:
using: "composite"
steps:
- run: |
git clone https://git.musl-libc.org/git/musl
cd musl
./configure
make
sudo make install
shell: bash

View File

@ -14,34 +14,25 @@ macOS does not have any platform-specific dependencies.
#### Linux
Make sure you have a recent install of GCC and Zip.
You must have Zip installed. We also require the Zig compiler for statically linking CGO.
Debian:
Debian/Ubuntu:
```sh
sudo apt install build-essential zip
sudo apt install zip snapd
sudo snap install zig --classic --beta
```
Fedora:
```sh
sudo dnf install make automake gcc gcc-c++ kernel-devel zip
sudo dnf install zip zig
```
Arch:
```sh
sudo pacman -S base-devel zip
```
We also require `musl-gcc` for statically linking CGO. Run the following from wherever you keep your source code:
```sh
git clone https://git.musl-libc.org/git/musl
cd musl
./configure
make
sudo make install
sudo pacman -S zip zig
```
#### Windows