yaobinwen-mvs is testing out GitHub Actions π #13
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: Hello GitHub Actions | |
run-name: ${{ github.actor }} is testing out GitHub Actions π | |
on: [push, workflow_dispatch] | |
jobs: | |
Explore-GitHub-Actions: | |
strategy: | |
# Cancel all in-progress and queued jobs in the matrix if any job in the | |
# matrix fails. | |
fail-fast: true | |
# Define a single-dimension matrix so we can run the job on the two | |
# architectures: arm64 and amd64. | |
matrix: | |
# NOTE(ywen): The AMIs seem to use `x64` for amd64 images. | |
arch: ["arm64", "x64"] | |
# NOTE(ywen): Use `self-hosted` to run the job on self-hosted runners. | |
runs-on: [self-hosted, "${{ matrix.arch }}"] | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "π₯οΈ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- run: echo "π This job's status is ${{ job.status }}." |