-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48db78b
commit 35c359b
Showing
5 changed files
with
63 additions
and
63 deletions.
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 |
---|---|---|
|
@@ -112,67 +112,67 @@ jobs: | |
with: | ||
name: pactup-linux | ||
path: target/x86_64-unknown-linux-gnu/release/pactup | ||
# Unfortunatly, No pact binary is available for linux arm | ||
# build_static_arm_binary: | ||
# name: "Build ARM binary" | ||
# strategy: | ||
# matrix: | ||
# include: | ||
# - arch: arm64 | ||
# rust_target: aarch64-unknown-linux-gnu | ||
# docker_image: arm64v8/ubuntu | ||
# docker_platform: aarch64 | ||
# - arch: arm32 | ||
# rust_target: armv7-unknown-linux-gnueabihf | ||
# docker_image: arm32v7/ubuntu | ||
# docker_platform: armv7 | ||
# runs-on: ubuntu-latest | ||
# env: | ||
# RUST_TARGET: ${{ matrix.rust_target }} | ||
# steps: | ||
# - name: Set up QEMU | ||
# id: qemu | ||
# uses: docker/setup-qemu-action@v3 | ||
# - uses: hecrj/setup-rust-action@v2 | ||
# with: | ||
# rust-version: ${{env.RUST_VERSION}} | ||
# - uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# key: arm-binary-${{ matrix.arch }} | ||
# - name: "Download `cross` crate" | ||
# run: cargo install cross | ||
# - uses: actions/checkout@v4 | ||
# - name: "Build release" | ||
# run: cross build --target $RUST_TARGET --release | ||
# - uses: uraimo/[email protected] | ||
# name: Sanity test | ||
# with: | ||
# arch: ${{matrix.docker_platform}} | ||
# distro: ubuntu18.04 | ||
|
||
build_static_arm_binary: | ||
name: "Build ARM binary" | ||
strategy: | ||
matrix: | ||
include: | ||
- arch: arm64 | ||
rust_target: aarch64-unknown-linux-gnu | ||
docker_image: arm64v8/ubuntu | ||
docker_platform: aarch64 | ||
- arch: arm32 | ||
rust_target: armv7-unknown-linux-gnueabihf | ||
docker_image: arm32v7/ubuntu | ||
docker_platform: armv7 | ||
runs-on: ubuntu-latest | ||
env: | ||
RUST_TARGET: ${{ matrix.rust_target }} | ||
steps: | ||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v3 | ||
- uses: hecrj/setup-rust-action@v2 | ||
with: | ||
rust-version: ${{env.RUST_VERSION}} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
key: arm-binary-${{ matrix.arch }} | ||
- name: "Download `cross` crate" | ||
run: cargo install cross | ||
- uses: actions/checkout@v4 | ||
- name: "Build release" | ||
run: cross build --target $RUST_TARGET --release | ||
- uses: uraimo/[email protected] | ||
name: Sanity test | ||
with: | ||
arch: ${{matrix.docker_platform}} | ||
distro: ubuntu18.04 | ||
|
||
# Not required, but speeds up builds by storing container images in | ||
# a GitHub package registry. | ||
githubToken: ${{ github.token }} | ||
# # Not required, but speeds up builds by storing container images in | ||
# # a GitHub package registry. | ||
# githubToken: ${{ github.token }} | ||
|
||
env: | | ||
RUST_LOG: pactup=debug | ||
# env: | | ||
# RUST_LOG: pactup=debug | ||
|
||
dockerRunArgs: | | ||
--volume "${PWD}/target/${{matrix.rust_target}}/release:/artifacts" | ||
# dockerRunArgs: | | ||
# --volume "${PWD}/target/${{matrix.rust_target}}/release:/artifacts" | ||
|
||
# Set an output parameter `uname` for use in subsequent steps | ||
run: | | ||
echo "Hello from $(uname -a)" | ||
/artifacts/pactup --version | ||
echo "pactup install 4.11" | ||
/artifacts/pactup install 4.11 | ||
echo "pactup exec --using=4.11 -- pact --version" | ||
/artifacts/pactup exec --using=4.11 -- pact --version | ||
# # Set an output parameter `uname` for use in subsequent steps | ||
# run: | | ||
# echo "Hello from $(uname -a)" | ||
# /artifacts/pactup --version | ||
# echo "pactup install 4.11" | ||
# /artifacts/pactup install 4.11 | ||
# echo "pactup exec --using=4.11 -- pact --version" | ||
# /artifacts/pactup exec --using=4.11 -- pact --version | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: pactup-${{ matrix.arch }} | ||
path: target/${{ env.RUST_TARGET }}/release/pactup | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: pactup-${{ matrix.arch }} | ||
# path: target/${{ env.RUST_TARGET }}/release/pactup | ||
|
||
ensure_commands_markdown_is_up_to_date: | ||
runs-on: ubuntu-latest | ||
|
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
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
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
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