Skip to content

Commit

Permalink
add action support for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
ludvigch committed Jan 30, 2025
1 parent 38c091e commit fb97b10
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ddc-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
name: DDC
run-name: ${{ github.actor }} is testing out DDC 🚀
on: workflow_dispatch
jobs:
DDC:
runs-on: ubuntu-latest
steps:
- run: echo "Starting DDC"
DDC:
runs-on: ubuntu-latest
steps:
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64
- uses: actions/checkout@v4
- name: Test GCC
run: gcc ./hello.c -o hello
- name: Run hello
run: ./hello
5 changes: 5 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include "stdio.h"

int main(){
printf("Hello world!\n");
}

0 comments on commit fb97b10

Please sign in to comment.