Skip to content

Add arm64 builds

Add arm64 builds #101

Workflow file for this run

# Copyright (c) 2022 MobileCoin Inc.
name: ci
on:
pull_request:
push:
tags:
- 'v*.*.*'
env:
PUSH: ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-actions:
runs-on: mco-dev-small-x64
steps:
- name: Lint GitHub Actions
uses: mobilecoinofficial/gh-actions/lint-actions@v0
lint-docker:
runs-on: mco-dev-small-x64
steps:
- name: Lint Dockerfiles with Hadolint
uses: mobilecoinofficial/gh-actions/lint-docker@v0
docker:
strategy:
matrix:
runner:
- mco-dev-small-x64
- mco-dev-small-arm64
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: mobilecoinofficial/gh-actions/checkout@v0
- name: Docker rust-base
uses: mobilecoinofficial/gh-actions/docker@v0
with:
flavor: latest=true
dockerfile: Dockerfile.rust-base
images: mobilecoin/rust-base
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
push: ${{ env.PUSH }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker fat-builder
uses: mobilecoinofficial/gh-actions/docker@v0
with:
flavor: latest=true
dockerfile: Dockerfile.fat-builder
images: mobilecoin/rust-builder
build_args: |
BASE_IMAGE=rust-base
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
push: ${{ env.PUSH }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker rust-sgx
if: runner.arch == 'X64'
uses: mobilecoinofficial/gh-actions/docker@v0
with:
flavor: latest=true
dockerfile: Dockerfile.rust-sgx
images: mobilecoin/rust-sgx
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
push: ${{ env.PUSH }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker fat-sgx-builder
if: runner.arch == 'X64'
uses: mobilecoinofficial/gh-actions/docker@v0
with:
flavor: latest=true
dockerfile: Dockerfile.fat-builder
images: mobilecoin/fat-sgx-builder
build_args: |
BASE_IMAGE=rust-sgx
tags: |
type=ref,event=branch
type=semver,pattern=v{{version}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
type=sha
push: ${{ env.PUSH }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}