Skip to content

Commit

Permalink
ci: try self-hosted arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Dec 17, 2024
1 parent d84d32f commit a0014f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 26 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ jobs:
image: ${{ inputs.image }}
digest: ${{ steps.build.outputs.digest }}

services:
registry:
image: registry:2
ports:
- 5000:5000

steps:
# https://github.com/jlumbroso/free-disk-space
- name: Free Disk Space (Ubuntu)
Expand All @@ -80,38 +86,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Docker CLI and Daemon
if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: |
brew install --formula docker
nohup dockerd > /tmp/dockerd.log 2>&1 &
sleep 5
echo "Docker daemon started"
- name: Verify Docker
run: docker version

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# Start Docker Registry Manually
- name: Start Local Docker Registry
run: |
docker run -d --name registry -p 5000:5000 registry:2
# Verify Registry is Running
- name: Verify Local Registry
run: |
curl -v http://localhost:5000/v2/
# https://github.com/prefix-dev/setup-pixi
- uses: prefix-dev/[email protected]

- name: Update Conda packages
shell: bash
run: pixi update

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: ./.github/workflows/build-test-publish.yml
secrets: inherit
with:
runs-on: macos-latest
runs-on: macos-arm64
image: foundation
target: base
no-cache: ${{ github.event_name == 'schedule' }}
Expand Down

0 comments on commit a0014f6

Please sign in to comment.