Skip to content

Commit

Permalink
Add compile workflow on self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed May 4, 2022
1 parent 8b85765 commit 0e0bb6a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Compile main

on:
push:
branches:
- main

jobs:
do_compile:
runs-on: self-hosted
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Compile and run
run: |
uname -a
clang++ -o hello hello.cpp
file hello
./hello
6 changes: 6 additions & 0 deletions hello.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <iostream>

int main() {
std:: cout << "Hello World" << std::endl;
return 0;
}

0 comments on commit 0e0bb6a

Please sign in to comment.