Run test integ on generic macos package

This commit is contained in:
lepapareil 2022-10-05 15:45:03 +02:00
parent 17aba51cf0
commit 1d1600a446
No known key found for this signature in database
GPG Key ID: F4F06B068FB00692
2 changed files with 30 additions and 1 deletions

View File

@ -119,7 +119,21 @@ jobs:
run: | run: |
bin/release/man.sh bin/release/man.sh
bin/release/release.sh bin/release/release.sh
bin/release/create_tarball.sh macos echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
- name: Test integ
run: |
bin/test/test_prerequisites.sh
bin/test/test_integ.sh
- name: Create generic macos package
run: bin/release/create_tarball.sh macos
- name: Install package
run: |
bin/release/install_generic_macos_package.sh
echo "PATH=/tmp/hurl-generic-macos:$PATH" >> "${GITHUB_ENV}"
- name: Test integ
run: |
bin/test/test_prerequisites.sh
bin/test/test_integ.sh
- name: Archive production artifacts - name: Archive production artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -0,0 +1,15 @@
#!/bin/sh
set -e
echo "----- install generic macos package -----"
# install
generic_macos_package=$(ls target/upload/hurl-*-x86_64-macos.tar.gz)
install_dir="/tmp/hurl-generic-macos"
mkdir -p "${install_dir}"
tar xvf "${generic_macos_package}" -C "${install_dir}" --strip-components=1
# Return PATH var to parent shell
echo "Run this if you want to use fresh builded hurl package:"
echo " export PATH=${install_dir}:$PATH"