Skip to content

Adds an (macos) arm build to the earthly build workflow #1

Adds an (macos) arm build to the earthly build workflow

Adds an (macos) arm build to the earthly build workflow #1

name: Earthly build

Check failure on line 1 in .github/workflows/earthly-build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/earthly-build.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: matrix
on:
workflow_dispatch:
push:
branches: ['main']
tags: ['*']
pull_request:
schedule:
- cron: '0 11 * * *'
jobs:
matrix:
os: [ubuntu-latest, macos-latest]
build-testing-results:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up earthly
run: |
sudo wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly
sudo chmod 755 /usr/local/bin/earthly
- name: Build Space ROS
id: build
run: |
earthly --ci --output +sources
earthly --ci --output +build-testing
echo "archivename=$(basename log/build_results_archives/build_results_*.tar.bz2)" >> $GITHUB_ENV
- name: Upload build results archive
uses: actions/upload-artifact@v3
with:
name: ${{env.archivename}}
path: log/build_results_archives/${{env.archivename}}
if-no-files-found: error
space-ros-image:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up earthly
run: |
sudo wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly
sudo chmod 755 /usr/local/bin/earthly
- name: Build spaceros image
run: |
earthly --ci --output +sources
earthly --ci +image
- name: Push spaceros image
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_RW_TOKEN }}
if: ${{ github.ref_type == 'tag' }}
run: |
echo $DOCKER_HUB_TOKEN | docker login --username osrfbot --password-stdin
earthly --ci --push +image --tag=${{ github.ref_name }}