From d33b04e19cad765314dbfd74e994cd97e146b10f Mon Sep 17 00:00:00 2001 From: ilammy Date: Wed, 2 Oct 2019 00:48:20 +0300 Subject: [PATCH] Verify configured environment Try compiling some C code, If it works then we're probably fine. I don't even try to verify cross-compilation because I don't need it. It should work, but that's not my problem right now. --- .github/workflows/main.yml | 4 ++++ hello.c | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 hello.c diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54ebc64..fb70fea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,3 +22,7 @@ jobs: run: npm install - name: Enable Developer Command Prompt uses: ./ + - name: Compile and run some C code + run: | + cl.exe hello.c + hello.exe diff --git a/hello.c b/hello.c new file mode 100644 index 0000000..5ba7644 --- /dev/null +++ b/hello.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, char **argv) +{ + printf("Hello, world!\n"); + return 0; +}