Skip to content

Instantly share code, notes, and snippets.

@ryutorion
Created June 26, 2021 03:57
Show Gist options
  • Save ryutorion/b0200df5250bc068f50dc168e84c53ea to your computer and use it in GitHub Desktop.
Save ryutorion/b0200df5250bc068f50dc168e84c53ea to your computer and use it in GitHub Desktop.
name: GitHub Actions Demo
on: [push]
jobs:
build-on-linux:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: build
run: |
cmake -S . -B build/linux -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
cmake --build build/linux
build-on-windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: build
run: |
cmake -S . -B build/windows -G "Visual Studio 16 2019" -Ax64 -Thost=x64
cmake --build build/windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment