mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-12 01:39:43 +00:00
ci: debug windows openssl CI
This commit is contained in:
parent
9c5199c325
commit
85613dd59e
17
.github/workflows/desktop-publish.yml
vendored
17
.github/workflows/desktop-publish.yml
vendored
@ -16,14 +16,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- platform: "macos-14" # for Arm based macs (M1 and above).
|
||||
args: "--target aarch64-apple-darwin --verbose"
|
||||
- platform: "macos-13" # for Intel based macs.
|
||||
args: "--target x86_64-apple-darwin --verbose"
|
||||
- platform: "macos-14" # for Both Arm and Intel based macs.
|
||||
args: "--target universal-apple-darwin --verbose"
|
||||
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
|
||||
args: "--verbose"
|
||||
# - platform: "macos-14" # for Arm based macs (M1 and above).
|
||||
# args: "--target aarch64-apple-darwin --verbose"
|
||||
# - platform: "macos-13" # for Intel based macs.
|
||||
# args: "--target x86_64-apple-darwin --verbose"
|
||||
# - platform: "macos-14" # for Both Arm and Intel based macs.
|
||||
# args: "--target universal-apple-darwin --verbose"
|
||||
# - platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
|
||||
# args: "--verbose"
|
||||
- platform: "windows-latest"
|
||||
args: "--verbose"
|
||||
|
||||
@ -57,6 +57,7 @@ jobs:
|
||||
echo OPENSSL_DIR='"C:\\Program Files\\OpenSSL-Win64"' >> $env:GITHUB_ENV
|
||||
echo OPENSSL_INCLUDE_DIR='"C:\\Program Files\\OpenSSL-Win64\\include"' >> $env:GITHUB_ENV
|
||||
echo OPENSSL_LIB_DIR='"C:\\Program Files\\OpenSSL-Win64\\lib\\VC\\x64\\MDd"' >> $env:GITHUB_ENV
|
||||
pnpm --filter=@kksh/ci openssl-check
|
||||
- uses: pnpm/action-setup@v4
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v4
|
||||
|
@ -3,7 +3,8 @@
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"prepare": "bun scripts/setup.ts"
|
||||
"prepare": "bun scripts/setup.ts",
|
||||
"openssl-check": "bun scripts/openssl-check.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
29
packages/ci/scripts/openssl-check.ts
Normal file
29
packages/ci/scripts/openssl-check.ts
Normal file
@ -0,0 +1,29 @@
|
||||
import fs from 'fs'
|
||||
|
||||
const OPENSSL_DIR = process.env.OPENSSL_DIR;
|
||||
const OPENSSL_INCLUDE_DIR = process.env.OPENSSL_INCLUDE_DIR;
|
||||
const OPENSSL_LIB_DIR = process.env.OPENSSL_LIB_DIR;
|
||||
|
||||
console.log("OPENSSL_DIR", OPENSSL_DIR);
|
||||
console.log("OPENSSL_INCLUDE_DIR", OPENSSL_INCLUDE_DIR);
|
||||
console.log("OPENSSL_LIB_DIR", OPENSSL_LIB_DIR);
|
||||
|
||||
// check if each directory exists
|
||||
if (!OPENSSL_DIR || !OPENSSL_INCLUDE_DIR || !OPENSSL_LIB_DIR) {
|
||||
console.error("OPENSSL_DIR, OPENSSL_INCLUDE_DIR, or OPENSSL_LIB_DIR is not set");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// check if each directory exists
|
||||
if (!fs.existsSync(OPENSSL_DIR)) {
|
||||
console.error("OPENSSL_DIR does not exist", OPENSSL_DIR);
|
||||
process.exit(1);
|
||||
}
|
||||
if (!fs.existsSync(OPENSSL_INCLUDE_DIR)) {
|
||||
console.error("OPENSSL_INCLUDE_DIR does not exist", OPENSSL_INCLUDE_DIR);
|
||||
process.exit(1);
|
||||
}
|
||||
if (!fs.existsSync(OPENSSL_LIB_DIR)) {
|
||||
console.error("OPENSSL_LIB_DIR does not exist", OPENSSL_LIB_DIR);
|
||||
process.exit(1);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user