-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add generic linux aarch64 package to extra-packages
- Loading branch information
1 parent
ff7ff95
commit 214e7b8
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,10 @@ on: | |
description: 'Push to winget' | ||
type: boolean | ||
default: false | ||
package-generic-linux-aarch64: | ||
description: 'Create generic linux aarch64 package' | ||
type: boolean | ||
default: false | ||
|
||
concurrency: extra-package | ||
|
||
|
@@ -76,3 +80,53 @@ jobs: | |
Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile .\wingetcreate.exe | ||
.\wingetcreate.exe version | ||
.\bin\release\push_package_to_winget.ps1 "$env:RELEASE_VERSION" "$env:WINGET_TOKEN" | ||
package-generic-linux-aarch64: | ||
if: github.event.inputs.package-generic-linux-aarch64 == 'true' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Build, Test units and Integration tests | ||
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 | ||
run: | | ||
set -e | ||
echo "::group::Install Prerequisites" | ||
bin/install_prerequisites_docker_ubuntu.sh | ||
sudo 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 | ||
bin/release/sha256sum.sh --write target/upload/hurl-$VERSION-aarch64-unknown-linux-gnu.tar.gz | ||
echo "::endgroup::" | ||
- name: Archive production artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: release-generic-linux-aarch64-artifacts | ||
path: target/upload/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters