mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Try using Zig instead (#831)
This commit is contained in:
parent
203db99b5f
commit
76f4ec641c
6
.github/workflows/build-helper.yml
vendored
6
.github/workflows/build-helper.yml
vendored
@ -39,10 +39,10 @@ jobs:
|
||||
sudo apt-get update
|
||||
sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm squashfs-tools
|
||||
|
||||
# We use musl-gcc instead of glibc for cgo compilation as it is more-easily statically linked
|
||||
- name: Setup musl-gcc (Linux only)
|
||||
# We use Zig instead of glibc for cgo compilation as it is more-easily statically linked
|
||||
- name: Setup Zig (Linux only)
|
||||
if: matrix.platform == 'linux'
|
||||
uses: ./.github/actions/setup-musl-gcc
|
||||
run: sudo snap install zig --classic --beta
|
||||
|
||||
# The pre-installed version of the AWS CLI has a segfault problem so we'll install it via Homebrew instead.
|
||||
- name: Upgrade AWS CLI (Mac only)
|
||||
|
6
.github/workflows/codeql.yml
vendored
6
.github/workflows/codeql.yml
vendored
@ -71,10 +71,10 @@ jobs:
|
||||
go-version: stable
|
||||
cache-dependency-path: |
|
||||
go.sum
|
||||
# We use musl-gcc instead of glibc for cgo compilation as it is more-easily statically linked
|
||||
- name: Setup musl-gcc (Go only)
|
||||
# We use Zig instead of glibc for cgo compilation as it is more-easily statically linked
|
||||
- name: Setup Zig (Go only)
|
||||
if: matrix.language == 'go'
|
||||
uses: ./.github/actions/setup-musl-gcc
|
||||
run: sudo snap install zig --classic --beta
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
@ -95,7 +95,7 @@ tasks:
|
||||
ARCHS:
|
||||
sh: echo {{if eq "arm" ARCH}}arm64{{else}}{{ARCH}}{{end}}
|
||||
GO_LDFLAGS: -linkmode 'external' -extldflags=-static
|
||||
GO_ENV_VARS: CC=/usr/local/musl/bin/musl-gcc
|
||||
GO_ENV_VARS: CC="zig cc"
|
||||
|
||||
build:server:internal:
|
||||
requires:
|
||||
|
Loading…
Reference in New Issue
Block a user