Bump houseabsolute/actions-rust-cross from 0 to 1 #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
should_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log in to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Build image | |
uses: docker/build-push-action@v6 | |
with: | |
cache-from: type=gha | |
# linux/amd64 supports all x86 CPUs | |
# linux/amd64/v2 supports x86 CPUs from 2010+ | |
# linux/amd64/v3 supports x86 CPUs from 2015+ | |
# https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels | |
platforms: linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64 | |
pull: true |