Add more images to CI #12
Workflow file for this run
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: CI | |
on: | |
push: | |
branches-ignore: | |
- 'main' | |
env: | |
BUILDER_VERSION: v0.8.12 | |
BUILDER_SOURCE: releases | |
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | |
PACKAGE_NAME: smithy-iot-device-sdk-greengrass-ipc | |
LINUX_BASE_IMAGE: ubuntu-18-x64 | |
HEAD_REF: ${{ github.head_ref }} | |
RUN: ${{ github.run_id }}-${{ github.run_number }} | |
AWS_DEFAULT_REGION: us-east-1 | |
jobs: | |
linux-compat: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: | |
- manylinux2014-x64 | |
- al2-x64 | |
- fedora-34-x64 | |
- rhel8-x64 | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v2 | |
- name: Build ${{ env.PACKAGE_NAME }} | |
run: | | |
# TODO Configure credentials to be able to use newer versions of the builder. | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u awslabs --password-stdin | |
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-${{ matrix.image }}:${{ env.BUILDER_VERSION }} | |
docker pull $DOCKER_IMAGE | |
docker run --mount type=bind,source=$(pwd),target=/root/${{ env.PACKAGE_NAME }} --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} |