mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-25 05:04:19 +01:00
scripts: use cross compiler from musl.cc
This commit is contained in:
12
.github/workflows/backend.yml
vendored
12
.github/workflows/backend.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
cd libwebsockets-${LWS_VERSION}
|
||||
cmake -DLWS_WITH_LIBUV=ON -DLWS_UNIX_SOCK=ON -DLWS_IPV6=ON -DLWS_WITHOUT_TESTAPPS=ON -DCMAKE_BUILD_TYPE=RELEASE .
|
||||
make && sudo make install && sudo ldconfig
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build ttyd
|
||||
run: |
|
||||
cmake -DCMAKE_BUILD_TYPE=RELEASE .
|
||||
@@ -44,13 +44,17 @@ jobs:
|
||||
runs-on: ubuntu-16.04
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [i386, x86_64, arm, armhf, aarch64, mips, mipsel]
|
||||
arch: [i686, x86_64, arm, armhf, aarch64, mips, mipsel, mips64, mips64el]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y autoconf automake build-essential cmake curl file libtool
|
||||
- name: Cross build (${{ matrix.arch }})
|
||||
env:
|
||||
ARCH: ${{ matrix.arch }}
|
||||
run: docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $ARCH
|
||||
run: ./scripts/cross-build.sh $ARCH
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ttyd.${{ matrix.arch }}
|
||||
|
||||
2
.github/workflows/frontend.yml
vendored
2
.github/workflows/frontend.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-16.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@@ -9,12 +9,16 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-16.04
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y autoconf automake build-essential cmake curl file libtool
|
||||
- name: Build Release
|
||||
run: |
|
||||
mkdir -p bin
|
||||
for arch in i386 x86_64 arm armhf aarch64 mips mipsel; do
|
||||
docker run --rm -v $(pwd):/ttyd -w /ttyd tsl0922/musl-cross ./scripts/cross-build.sh $arch
|
||||
for arch in i686 x86_64 arm armhf aarch64 mips mipsel mips64 mips64el; do
|
||||
./scripts/cross-build.sh $arch
|
||||
cp build/ttyd bin/ttyd_linux.$arch
|
||||
sha256sum bin/ttyd_linux.$arch >> bin/SHA256SUMS
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user