
| 仮想マシン | アーキテクチャ | ラベル | 説明 |
|---|---|---|---|
| Linux | x64(amd64) | ubuntu-latest、ubuntu-24.04、ubuntu-22.04、ubuntu-20.04 |
|
| Linux | arm64(AArch64) | ubuntu-24.04-arm、ubuntu-22.04-arm |
Public リポジトリのみ |
| macOS | x64 | macos-13 |
Intel Mac |
| macOS | arm64(AArch64) | macos-latest、macos-14、macos-15 |
Apple silicon |
| Windows | x64(amd64) | windows-latest、windows-2025、windows-2022、windows-2019 |
詳細はGitHub Actions Runner Images参照
それぞれのアーキテクチャ毎にアセットをビルドする場合は以下のようになるでしょう。
jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: include: - os: ubuntu-latest asset_name: asset-linux-x64 - os: ubuntu-24.04-arm asset_name: asset-linux-aarch64 - os: macOS-latest asset_name: asset-macos-aarch64 - os: macOS-13 asset_name: asset-macos-x64 - os: windows-latest asset_name: asset-windows-x64 fail-fast: false name: ${{ matrix.os }} // ...