Skip to content

Instantly share code, notes, and snippets.

@paramsiddharth
Created December 19, 2020 11:57
Show Gist options
  • Save paramsiddharth/7faf33f0ffb65230b6132710cee6e1b0 to your computer and use it in GitHub Desktop.
Save paramsiddharth/7faf33f0ffb65230b6132710cee6e1b0 to your computer and use it in GitHub Desktop.
A Gist for GitHub Actions
name: Compile and Run
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v2
- name: Compile using C compiler and execute
env:
compiler_name: ${{ matrix.compiler }}
run: |
$compiler_name <yourname>.c
./a.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment