File tree 1 file changed +22
-3
lines changed
1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,27 @@ jobs:
37
37
sudo add-apt-repository -y ppa:git-core/ppa
38
38
sudo apt-get update
39
39
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
41
41
env :
42
42
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
43
43
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
+
44
61
- name : Setup (macos)
45
62
if : matrix.os == 'macos-12'
46
63
run : |
@@ -103,14 +120,16 @@ jobs:
103
120
104
121
- name : Prepare artifact for upload
105
122
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 .
107
126
108
127
- name : Upload artifact
109
128
if : matrix.os == 'ubuntu-latest'
110
129
uses : actions/upload-artifact@v3
111
130
with :
112
131
name : build-ubuntu
113
- path : artifact.tar
132
+ path : artifact.tar.gz
114
133
if-no-files-found : error
115
134
retention-days : 5
116
135
You can’t perform that action at this time.
0 commit comments