mirror of
https://github.com/iv-org/lsquic-static-alpine.git
synced 2025-07-20 05:42:09 -04:00
Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ba053fe503 | ||
![]() |
ebf1779197 | ||
![]() |
279c80ecd4 | ||
![]() |
0e80d04796 | ||
![]() |
4751be6c11 | ||
![]() |
2757fe250c | ||
![]() |
bc82af70b0 | ||
![]() |
bbfbee872b | ||
![]() |
f17eb6e341 |
2 changed files with 49 additions and 36 deletions
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine:3.14
|
container: alpine:latest
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
LSQUIC_COMMIT: ${{ env.LSQUIC_COMMIT }}
|
LSQUIC_COMMIT: ${{ env.LSQUIC_COMMIT }}
|
||||||
|
@ -17,21 +17,7 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install action dependencies
|
- name: Install action dependencies
|
||||||
run: |
|
run: apk add git tar
|
||||||
apk add \
|
|
||||||
binutils \
|
|
||||||
bsd-compat-headers \
|
|
||||||
build-base \
|
|
||||||
cmake \
|
|
||||||
git \
|
|
||||||
go \
|
|
||||||
libevent-dev \
|
|
||||||
linux-headers \
|
|
||||||
ninja \
|
|
||||||
perl \
|
|
||||||
tar \
|
|
||||||
zlib-dev \
|
|
||||||
zlib-static
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
@ -48,15 +34,41 @@ jobs:
|
||||||
- name: Build BoringSSL
|
- name: Build BoringSSL
|
||||||
if: steps.cache-boringssl.outputs.cache-hit != 'true'
|
if: steps.cache-boringssl.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
apk add \
|
||||||
|
build-base \
|
||||||
|
cmake \
|
||||||
|
git \
|
||||||
|
go \
|
||||||
|
linux-headers \
|
||||||
|
ninja \
|
||||||
|
perl
|
||||||
git clone https://boringssl.googlesource.com/boringssl
|
git clone https://boringssl.googlesource.com/boringssl
|
||||||
cd boringssl
|
cd boringssl
|
||||||
git checkout $BORINGSSL_COMMIT
|
git checkout $BORINGSSL_COMMIT
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -GNinja .
|
cmake -DCMAKE_BUILD_TYPE=Release -GNinja .
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
- name: Cache LSQUIC
|
||||||
|
id: cache-lsquic
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ./lsquic
|
||||||
|
key: lsquic-${{ env.LSQUIC_COMMIT }}-${{ env.BORINGSSL_COMMIT }}
|
||||||
|
|
||||||
- name: Build LSQUIC
|
- name: Build LSQUIC
|
||||||
if: steps.cache-lsquic.outputs.cache-hit != 'true'
|
if: steps.cache-lsquic.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
apk add \
|
||||||
|
build-base \
|
||||||
|
bsd-compat-headers \
|
||||||
|
cmake \
|
||||||
|
git \
|
||||||
|
go \
|
||||||
|
libevent-dev \
|
||||||
|
linux-headers \
|
||||||
|
perl \
|
||||||
|
zlib-dev \
|
||||||
|
zlib-static
|
||||||
git clone https://github.com/litespeedtech/lsquic.git
|
git clone https://github.com/litespeedtech/lsquic.git
|
||||||
cd lsquic
|
cd lsquic
|
||||||
git checkout $LSQUIC_COMMIT
|
git checkout $LSQUIC_COMMIT
|
||||||
|
@ -80,6 +92,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare artifact / release asset
|
- name: Prepare artifact / release asset
|
||||||
run: |
|
run: |
|
||||||
|
apk add binutils
|
||||||
mkdir dist
|
mkdir dist
|
||||||
cd dist
|
cd dist
|
||||||
ar -x ../boringssl/ssl/libssl.a
|
ar -x ../boringssl/ssl/libssl.a
|
||||||
|
|
4
env.sh
4
env.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
BORINGSSL_COMMIT=b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1
|
BORINGSSL_COMMIT=a9670a8b476470e6f874fef3554e8059683e1413
|
||||||
LSQUIC_COMMIT=32a0aa38a49a8d84f80c62e184543dcbd439c5aa
|
LSQUIC_COMMIT=0a4f8953dc92dd3085e48ed90f293f052cff8427
|
||||||
|
|
||||||
echo "BORINGSSL_COMMIT=$BORINGSSL_COMMIT" >> $GITHUB_ENV
|
echo "BORINGSSL_COMMIT=$BORINGSSL_COMMIT" >> $GITHUB_ENV
|
||||||
echo "LSQUIC_COMMIT=$LSQUIC_COMMIT" >> $GITHUB_ENV
|
echo "LSQUIC_COMMIT=$LSQUIC_COMMIT" >> $GITHUB_ENV
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue