Check arm64 #47
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: Check arm64 | |
concurrency: | |
group: check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
env: | |
PUSH: true | |
SUBNET_ID: ${{ secrets.SUBNET_ID }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- run: bin/01-pull --arch arm64 | |
id: pull | |
- run: bin/02-build ${{ steps.check.outputs.release_dir }} | |
if: ${{ steps.check.outputs.release_dir }} | |
timeout-minutes: 300 | |
env: | |
AMI_PREFIX: runs-on-v2 | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Add ${{ steps.pull.outputs.release_dir }}" | |
- if: always() | |
# make sure we terminate instances even if workflow is canceled | |
run: bin/cleanup-instances |