Skip to content

Commit

Permalink
macをやめて、全てqemuでやらせてみる
Browse files Browse the repository at this point in the history
  • Loading branch information
Till0196 committed Nov 13, 2024
1 parent f639434 commit fd87d98
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,17 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux/amd64
- os: macos-latest
platform: linux/arm64
runs-on: ${{ matrix.os }}
platform:
- linux/amd64
- linux/arm64
runs-on: ubuntu-latest
steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
echo "REGISTRY_IMAGE=`echo ghcr.io/${{github.repository}} | tr '[:upper:]' '[:lower:]'`" >> ${GITHUB_ENV}
- name: Install Docker and start Colima on macOS
if: matrix.os == 'macos-latest'
run: |
brew install docker --formula
brew install colima
brew install qemu
LIMACTL_PATH=$(brew --prefix)/bin/limactl
sudo curl -L -o $LIMACTL_PATH https://github.com/mikekazakov/lima-nohvf/raw/master/limactl && sudo chmod +x $LIMACTL_PATH
colima start --network-address --arch arm64 --vm-type=qemu
- name: Use GNU tar on macOS
if: matrix.os == 'macos-latest'
run: |
brew install gnu-tar
echo "$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin" >> $GITHUB_PATH
- name: check GNU tar versions on macOS
if: matrix.os == 'macos-latest'
run: |
tar --version
- uses: actions/checkout@v4

- name: Docker meta
Expand Down

0 comments on commit fd87d98

Please sign in to comment.