Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwsh committed Jan 30, 2024
1 parent e08de65 commit c89c7ab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ jobs:
toolchain: ${{ matrix.toolchain }}
args: "--locked --release"
strip: true
- name: Setup docker context
if: matrix.platform.target == 'x86_64-unknown-linux-musl'
run: |
docker context create ci
docker context use ci
- name: Set up Docker Buildx
if: matrix.platform.target == 'x86_64-unknown-linux-musl'
uses: docker/setup-buildx-action@v3
with:
endpoint: ci
- name: Build x86_64 with docker
uses: docker/build-push-action@v5
if: matrix.platform.target == 'x86_64-unknown-linux-musl'
Expand All @@ -68,7 +78,6 @@ jobs:
tags: ${{ vars.DOCKERHUB_USER }}/${{ github.event.repository.name }}:musl
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Create folder for musl binary
if: matrix.platform.os_name != 'Linux-x86_64'
run: |
Expand Down Expand Up @@ -110,8 +119,9 @@ jobs:
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- run: docker context create ci
- run: docker context use ci
- run: |
docker context create ci
docker context use ci
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
Expand Down

0 comments on commit c89c7ab

Please sign in to comment.