mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
Use composite action for setup-musl-gcc (#829)
This commit is contained in:
parent
c79bcde76c
commit
e58e791b13
13
.github/actions/setup-musl-gcc/action.yml
vendored
Normal file
13
.github/actions/setup-musl-gcc/action.yml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
9
.github/workflows/build-helper.yml
vendored
9
.github/workflows/build-helper.yml
vendored
@ -37,17 +37,12 @@ jobs:
|
|||||||
if: matrix.platform == 'linux'
|
if: matrix.platform == 'linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm squashfs-tools build-essential
|
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
|
# We use musl-gcc instead of glibc for cgo compilation as it is more-easily statically linked
|
||||||
- name: Setup musl-gcc (Linux only)
|
- name: Setup musl-gcc (Linux only)
|
||||||
if: matrix.platform == 'linux'
|
if: matrix.platform == 'linux'
|
||||||
run: |
|
uses: ./.github/actions/setup-musl-gcc
|
||||||
git clone https://git.musl-libc.org/git/musl
|
|
||||||
cd musl
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
# The pre-installed version of the AWS CLI has a segfault problem so we'll install it via Homebrew instead.
|
# 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)
|
- name: Upgrade AWS CLI (Mac only)
|
||||||
|
7
.github/workflows/codeql.yml
vendored
7
.github/workflows/codeql.yml
vendored
@ -74,12 +74,7 @@ jobs:
|
|||||||
# We use musl-gcc instead of glibc for cgo compilation as it is more-easily statically linked
|
# We use musl-gcc instead of glibc for cgo compilation as it is more-easily statically linked
|
||||||
- name: Setup musl-gcc (Go only)
|
- name: Setup musl-gcc (Go only)
|
||||||
if: matrix.language == 'go'
|
if: matrix.language == 'go'
|
||||||
run: |
|
uses: ./.github/actions/setup-musl-gcc
|
||||||
git clone https://git.musl-libc.org/git/musl
|
|
||||||
cd musl
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
Loading…
Reference in New Issue
Block a user