Skip to content

Commit

Permalink
ci: add ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
erguotou520 committed Dec 31, 2024
1 parent 2ca380b commit 47f75d9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,25 @@ jobs:
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
setup: apt-get update && apt-get install -y pkg-config libssl-dev
build: yarn workspace @doremijs/igit-core build --target x86_64-unknown-linux-gnu
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
setup: apk add --no-cache openssl-dev pkgconfig
build: yarn workspace @doremijs/igit-core build --target x86_64-unknown-linux-musl
- host: macos-latest
target: aarch64-apple-darwin
build: yarn workspace @doremijs/igit-core build --target aarch64-apple-darwin
- host: ubuntu-latest
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
setup: apt-get update && apt-get install -y pkg-config libssl-dev
build: yarn workspace @doremijs/igit-core build --target aarch64-unknown-linux-gnu
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
setup: apk add --no-cache openssl-dev pkgconfig
build: |-
set -e &&
rustup target add aarch64-unknown-linux-musl &&
Expand Down Expand Up @@ -126,14 +130,8 @@ jobs:
image: ${{ matrix.settings.docker }}
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
run: |
# 为 Debian 基础镜像安装 OpenSSL
if command -v apt-get &> /dev/null; then
apt-get update && apt-get install -y pkg-config libssl-dev
# 为 Alpine 基础镜像安装 OpenSSL
elif command -v apk &> /dev/null; then
apk add --no-cache openssl-dev pkgconfig
fi
set -e
${{ matrix.settings.setup }}
${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
Expand Down

0 comments on commit 47f75d9

Please sign in to comment.