Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

WIP: experiment using macos builders #395

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,26 @@ concurrency:

jobs:
task:
name: ${{ matrix.command }}
runs-on: ubuntu-22.04
name: ${{ matrix.name || matrix.command }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
command:
- lint
- build

os:
- ubuntu-22.04
include:
- command: build
os: macos-14
name: build@macos
env:
# We use this option only on release pipeline due to the heavy cost
EXTRA_OPTS: --platform=linux/amd64,linux/arm64
EXTRA_OPTS: ""
EXPECTED_IMAGES: 2
SKIP_PODMAN: 1

steps:
- name: Grab the source from Git
Expand Down
6 changes: 3 additions & 3 deletions _build/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This tool is used to setup the environment for running the tests. Its name
# name and location is based on Zuul CI, which can automatically run it.
# (cspell: disable-next-line)
set -euo pipefail
set -euxo pipefail

PIP_LOG_FILE=out/log/pip.log
HOSTNAME="${HOSTNAME:-localhost}"
Expand Down Expand Up @@ -149,8 +149,8 @@ if [[ "${PODMAN_VERSION}" != 'null' ]] && [[ "${SKIP_PODMAN:-}" != '1' ]]; then
fi
fi
# verify podman ability to execute multi-arch commands:
podman run --arch=arm64 -qit bash arch
podman run --arch=amd64 -qit bash arch
# podman run --arch=arm64 -qit bash arch
# podman run --arch=amd64 -qit bash arch

# Create a build manifest so we can compare between builds and machines, this
# also has the role of ensuring that the required executables are present.
Expand Down
Loading