Use Github linux arm runners instead of Circleci and Qemu
This commit is contained in:
parent
e6b4e167a8
commit
fd955e3db5
|
|
@ -1,46 +0,0 @@
|
|||
version: 2.1
|
||||
|
||||
jobs:
|
||||
test-ubuntu-arm64:
|
||||
machine:
|
||||
image: ubuntu-2004:current
|
||||
resource_class: arm.medium
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Environment
|
||||
command: |
|
||||
bin/environment.sh
|
||||
- run:
|
||||
name: Install prerequisites
|
||||
command: |
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
sudo apt update -qq
|
||||
sudo apt install -y -qq libxml2-dev libxslt-dev libxml2-utils libcurl4-openssl-dev
|
||||
- run:
|
||||
name: Install rust
|
||||
command: |
|
||||
bin/install_rust.sh
|
||||
- run:
|
||||
name: Tests units
|
||||
command: |
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_unit.sh
|
||||
- run:
|
||||
name: Build release
|
||||
command: |
|
||||
bin/release/release.sh
|
||||
- run:
|
||||
name: Integration tests
|
||||
command: |
|
||||
PATH="${PWD}/target/release:${PATH}"
|
||||
export PATH
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- store_artifacts:
|
||||
path: integration/build/*.log
|
||||
|
||||
workflows:
|
||||
tests-arm64:
|
||||
jobs:
|
||||
- test-ubuntu-arm64
|
||||
|
|
@ -61,55 +61,6 @@ jobs:
|
|||
name: release-generic-linux-x64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-generic-linux-aarch64:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3.3.0
|
||||
- name: Create package
|
||||
uses: addnab/docker-run-action@v3
|
||||
with:
|
||||
image: ubuntu:22.04
|
||||
options: --platform linux/arm64/v8 --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always --env CARGO_BUILD_TARGET=aarch64-unknown-linux-gnu
|
||||
run: |
|
||||
set -e
|
||||
echo "::group::Install Prerequisites"
|
||||
bin/install_prerequisites_ubuntu.sh
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||
./bin/export_cross_compile_env.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Install Rust"
|
||||
bin/install_rust.sh
|
||||
. "$HOME/.cargo/env"
|
||||
echo "::endgroup::"
|
||||
echo "::group::Environment"
|
||||
bin/environment.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Build"
|
||||
./bin/release/release.sh
|
||||
cp -frp target/$CARGO_BUILD_TARGET/release/hurl ./target/release/
|
||||
cp -frp target/$CARGO_BUILD_TARGET/release/hurlfmt ./target/release/
|
||||
echo "::endgroup::"
|
||||
echo "::group::Get version"
|
||||
export VERSION=$(bin/release/get_version.sh)
|
||||
echo "::endgroup::"
|
||||
echo "::group::Create man"
|
||||
bin/release/man.sh
|
||||
echo "::endgroup::"
|
||||
echo "::group::Create tarball"
|
||||
bin/release/create_tarball.sh
|
||||
echo "::endgroup::"
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.6.0
|
||||
with:
|
||||
name: release-generic-linux-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
test-generic-linux-on-docker-ubuntu-x64:
|
||||
needs: package-generic-linux-x64
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -395,6 +346,58 @@ jobs:
|
|||
path: |
|
||||
./**/*.log
|
||||
|
||||
package-generic-linux-aarch64:
|
||||
runs-on: ubuntu-22.04-arm
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Install prerequisites
|
||||
run: bin/install_prerequisites_ubuntu.sh
|
||||
- name: Install Python 3.11
|
||||
uses: actions/setup-python@v5.4.0
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Activate python3 venv
|
||||
run: |
|
||||
bin/activate_python3_venv.sh
|
||||
export PATH="/tmp/hurl-python3-venv/bin:$PATH"
|
||||
echo "PATH=$PATH" >> $GITHUB_ENV
|
||||
which python3
|
||||
python3 --version
|
||||
pip --version
|
||||
- name : Environment
|
||||
run: bin/environment.sh
|
||||
- name: Install rust
|
||||
run: bin/install_rust.sh
|
||||
- name: Build
|
||||
run: |
|
||||
bin/release/release.sh
|
||||
echo "PATH=:${PWD}/target/release:$PATH" >> "${GITHUB_ENV}"
|
||||
- name: Get version
|
||||
run: |
|
||||
VERSION=$(bin/release/get_version.sh)
|
||||
echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"
|
||||
- name: Create generic linux package
|
||||
run: |
|
||||
bin/release/man.sh
|
||||
bin/release/create_tarball.sh
|
||||
- name: Install generic linux package
|
||||
run: |
|
||||
bin/release/install_generic_linux_package.sh
|
||||
export PATH="/tmp/hurl-generic-linux/bin:$PATH"
|
||||
- name: Test integ
|
||||
run: |
|
||||
bin/test/test_prerequisites.sh
|
||||
bin/test/test_integ.sh
|
||||
- name: Archive production artifacts
|
||||
uses: actions/upload-artifact@v4.6.0
|
||||
with:
|
||||
name: release-generic-linux-aarch64-artifacts
|
||||
path: target/upload/*
|
||||
|
||||
package-deb-x64:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
[semver pattern: hurl-x.y.z-aarch64-unknown-linux-gnu.tar.gz]
|
||||
[elements: total 17, dirs 5, files 10, empty-files 0]
|
||||
|
||||
attr user_group type file
|
||||
------- ---------- ---- ----
|
||||
drwxr-xr-x root/root dir hurl-x.y.z-aarch64-unknown-linux-gnu/
|
||||
drwxr-xr-x root/root dir hurl-x.y.z-aarch64-unknown-linux-gnu/bin/
|
||||
-rwxr-xr-x root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/bin/hurl
|
||||
-rwxr-xr-x root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/bin/hurlfmt
|
||||
drwxr-xr-x root/root dir hurl-x.y.z-aarch64-unknown-linux-gnu/completions/
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/_hurl
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/_hurlfmt
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurl.bash
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurl.fish
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurlfmt.bash
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurlfmt.fish
|
||||
drwxr-xr-x root/root dir hurl-x.y.z-aarch64-unknown-linux-gnu/man/
|
||||
drwxr-xr-x root/root dir hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/hurl.1.gz
|
||||
-rw-r--r-- root/root file hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/hurlfmt.1.gz
|
||||
attr user_group type file
|
||||
------- ---------- ---- ----
|
||||
drwxr-xr-x runner/docker dir hurl-x.y.z-aarch64-unknown-linux-gnu/
|
||||
drwxr-xr-x runner/docker dir hurl-x.y.z-aarch64-unknown-linux-gnu/bin/
|
||||
-rwxr-xr-x runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/bin/hurl
|
||||
-rwxr-xr-x runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/bin/hurlfmt
|
||||
drwxr-xr-x runner/docker dir hurl-x.y.z-aarch64-unknown-linux-gnu/completions/
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/_hurl
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/_hurlfmt
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurl.bash
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurl.fish
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurlfmt.bash
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/completions/hurlfmt.fish
|
||||
drwxr-xr-x runner/docker dir hurl-x.y.z-aarch64-unknown-linux-gnu/man/
|
||||
drwxr-xr-x runner/docker dir hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/hurl.1.gz
|
||||
-rw-r--r-- runner/docker file hurl-x.y.z-aarch64-unknown-linux-gnu/man/man1/hurlfmt.1.gz
|
||||
|
|
|
|||
Loading…
Reference in New Issue