Use tar to preserve links

Something broke in the actions/download-artifact action and it is not preserving symbolic links. It didn't get a new release so my guess is that something was updated in the node environment or in npm. This is a future proof solution to preserve the fs structure between upload and download.
pull/7835/head
Juliusz Sosinowicz 2024-08-05 14:32:37 +02:00
parent 54370cc51e
commit 5320b425e7
21 changed files with 148 additions and 43 deletions

View File

@ -26,11 +26,14 @@ jobs:
configure: --enable-curl configure: --enable-curl
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-curl name: wolf-install-curl
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
test_curl: test_curl:
@ -54,7 +57,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-curl name: wolf-install-curl
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Build curl - name: Build curl
uses: wolfSSL/actions-build-autotools-project@v1 uses: wolfSSL/actions-build-autotools-project@v1

View File

@ -29,11 +29,14 @@ jobs:
# Don't run tests as this config is tested in many other places # Don't run tests as this config is tested in many other places
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-sasl name: wolf-install-sasl
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
sasl_check: sasl_check:
@ -60,7 +63,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-sasl name: wolf-install-sasl
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-all 'CPPFLAGS=-DWOLFSSL_RSA_KEY_CHECK -DHAVE_EX_DATA_CLEANUP_HOOKS' configure: --enable-all 'CPPFLAGS=-DWOLFSSL_RSA_KEY_CHECK -DHAVE_EX_DATA_CLEANUP_HOOKS'
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-grpc name: wolf-install-grpc
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
grpc_check: grpc_check:
@ -65,7 +68,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-grpc name: wolf-install-grpc
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-hitch configure: --enable-hitch
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-hitch name: wolf-install-hitch
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
hitch_check: hitch_check:
@ -53,7 +56,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-hitch name: wolf-install-hitch
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -52,11 +52,14 @@ jobs:
${{ env.wolf_debug_flags }} ${{ matrix.wolf_extra_config }} ${{ env.wolf_debug_flags }} ${{ matrix.wolf_extra_config }}
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.build_id }} name: ${{ matrix.build_id }}
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
build_uml_linux: build_uml_linux:
@ -178,7 +181,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: ${{ matrix.config.build_id }} name: ${{ matrix.config.build_id }}
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Install dependencies - name: Install dependencies
run: | run: |

View File

@ -30,11 +30,14 @@ jobs:
# Don't run tests as this config is tested in many other places # Don't run tests as this config is tested in many other places
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-ipmitool name: wolf-install-ipmitool
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
build_ipmitool: build_ipmitool:
@ -50,7 +53,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-ipmitool name: wolf-install-ipmitool
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -29,11 +29,14 @@ jobs:
# Don't run tests as this config is tested in many other places # Don't run tests as this config is tested in many other places
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-jwt-cpp name: wolf-install-jwt-cpp
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
build_pam-ipmi: build_pam-ipmi:
@ -56,7 +59,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-jwt-cpp name: wolf-install-jwt-cpp
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -31,11 +31,14 @@ jobs:
configure: --enable-krb CC='gcc -fsanitize=address' configure: --enable-krb CC='gcc -fsanitize=address'
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-krb5 name: wolf-install-krb5
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
krb5_check: krb5_check:
@ -54,7 +57,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-krb5 name: wolf-install-krb5
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -28,11 +28,14 @@ jobs:
check: false # config is already tested in many other PRB's check: false # config is already tested in many other PRB's
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-libssh2 name: wolf-install-libssh2
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
libssh2_check: libssh2_check:
@ -51,7 +54,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-libssh2 name: wolf-install-libssh2
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Build and test libssh2 - name: Build and test libssh2
uses: wolfSSL/actions-build-autotools-project@v1 uses: wolfSSL/actions-build-autotools-project@v1

View File

@ -29,11 +29,14 @@ jobs:
# Don't run tests as this config is tested in many other places # Don't run tests as this config is tested in many other places
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-libvncserver name: wolf-install-libvncserver
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
build_libvncserver: build_libvncserver:
@ -49,7 +52,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-libvncserver name: wolf-install-libvncserver
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -28,11 +28,14 @@ jobs:
- name: Bundle Docker entry point - name: Bundle Docker entry point
run: cp wolfssl/.github/workflows/memcached.sh build-dir/bin run: cp wolfssl/.github/workflows/memcached.sh build-dir/bin
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-memcached name: wolf-install-memcached
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
memcached_check: memcached_check:
@ -50,7 +53,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-memcached name: wolf-install-memcached
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-mosquitto CFLAGS="-DALLOW_INVALID_CERTSIGN" configure: --enable-mosquitto CFLAGS="-DALLOW_INVALID_CERTSIGN"
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-mosquitto name: wolf-install-mosquitto
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
mosquitto_check: mosquitto_check:
@ -49,7 +52,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-mosquitto name: wolf-install-mosquitto
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-net-snmp configure: --enable-net-snmp
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-net-snmp name: wolf-install-net-snmp
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
net-snmp_check: net-snmp_check:
@ -52,7 +55,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-net-snmp name: wolf-install-net-snmp
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -33,11 +33,14 @@ jobs:
configure: --enable-nginx ${{ env.wolf_debug_flags }} configure: --enable-nginx ${{ env.wolf_debug_flags }}
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-nginx name: wolf-install-nginx
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
nginx_check: nginx_check:
@ -111,7 +114,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-nginx name: wolf-install-nginx
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Install dependencies - name: Install dependencies
run: | run: |

View File

@ -28,11 +28,14 @@ jobs:
install: true install: true
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-ntp name: wolf-install-ntp
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
ntp_check: ntp_check:
@ -51,7 +54,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-ntp name: wolf-install-ntp
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -29,11 +29,14 @@ jobs:
--enable-intelasm --enable-sp-asm --enable-intelasm --enable-sp-asm
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-openssh name: wolf-install-openssh
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
openssh_check: openssh_check:
@ -51,7 +54,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-openssh name: wolf-install-openssh
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-openvpn configure: --enable-openvpn
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-openvpn name: wolf-install-openvpn
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
openvpn_check: openvpn_check:
@ -50,7 +53,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-openvpn name: wolf-install-openvpn
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Install dependencies - name: Install dependencies
run: | run: |

View File

@ -30,11 +30,14 @@ jobs:
# Don't run tests as this config is tested in many other places # Don't run tests as this config is tested in many other places
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-pam-ipmi name: wolf-install-pam-ipmi
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
build_pam-ipmi: build_pam-ipmi:
@ -58,7 +61,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-pam-ipmi name: wolf-install-pam-ipmi
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -28,11 +28,14 @@ jobs:
install: true install: true
check: false check: false
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-rng-tools name: wolf-install-rng-tools
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
rng-tools_check: rng-tools_check:
@ -58,7 +61,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-rng-tools name: wolf-install-rng-tools
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@ -25,12 +25,15 @@ jobs:
configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS' configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS'
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-socat name: wolf-install-socat
path: build-dir path: build-dir.tgz
retention-days: 3 retention-days: 5
socat_check: socat_check:
@ -49,7 +52,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-socat name: wolf-install-socat
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Download socat - name: Download socat
run: curl -O http://www.dest-unreach.org/socat/download/socat-1.8.0.0.tar.gz && tar xvf socat-1.8.0.0.tar.gz run: curl -O http://www.dest-unreach.org/socat/download/socat-1.8.0.0.tar.gz && tar xvf socat-1.8.0.0.tar.gz

View File

@ -27,11 +27,14 @@ jobs:
configure: --enable-stunnel configure: --enable-stunnel
install: true install: true
- name: tar build-dir
run: tar -zcf build-dir.tgz build-dir
- name: Upload built lib - name: Upload built lib
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: wolf-install-stunnel name: wolf-install-stunnel
path: build-dir path: build-dir.tgz
retention-days: 5 retention-days: 5
stunnel_check: stunnel_check:
@ -50,7 +53,9 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: wolf-install-stunnel name: wolf-install-stunnel
path: build-dir
- name: untar build-dir
run: tar -xf build-dir.tgz
- name: Checkout OSP - name: Checkout OSP
uses: actions/checkout@v4 uses: actions/checkout@v4