File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,27 @@ jobs:
3737 sudo add-apt-repository -y ppa:git-core/ppa
3838 sudo apt-get update
3939 sudo apt-get install -y git build-essential clang python3 libssl-dev libkrb5-dev libc++-dev
40- npm config set openssl_dir /usr/lib/ssl
40+ npm config set openssl_dir ${{ github.workspace }}/openssl-1.1.1q/build
4141 env :
4242 ACTIONS_ALLOW_UNSECURE_COMMANDS : true
4343
44+ - name : Cache Openssl (linux)
45+ if : matrix.os == 'ubuntu-latest'
46+ id : cache-openssl
47+ uses : actions/cache@v3
48+ with :
49+ path : openssl-1.1.1q
50+ key : ${{ runner.os }}-openssl
51+
52+ - name : Build Openssl (linux)
53+ if : matrix.os == 'ubuntu-latest' && steps.cache-openssl.outputs.cache-hit != 'true'
54+ run : |
55+ wget -qO- https://www.openssl.org/source/openssl-1.1.1q.tar.gz | tar -xz
56+ cd openssl-1.1.1q
57+ ./config --prefix=${{ github.workspace }}/openssl-1.1.1q/build --openssldir=${{ github.workspace }}/openssl-1.1.1q/build
58+ make
59+ make install
60+
4461 - name : Setup (macos)
4562 if : matrix.os == 'macos-12'
4663 run : |
@@ -103,14 +120,16 @@ jobs:
103120
104121 - name : Prepare artifact for upload
105122 if : matrix.os == 'ubuntu-latest'
106- run : tar -zcf artifact.tar.gz .
123+ run : |
124+ touch artifact.tar.gz
125+ tar -zcf artifact.tar.gz --exclude=artifact.tar.gz .
107126
108127 - name : Upload artifact
109128 if : matrix.os == 'ubuntu-latest'
110129 uses : actions/upload-artifact@v3
111130 with :
112131 name : build-ubuntu
113- path : artifact.tar
132+ path : artifact.tar.gz
114133 if-no-files-found : error
115134 retention-days : 5
116135
You can’t perform that action at this time.
0 commit comments