Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vipul-Cariappa committed Jan 3, 2024
1 parent 102e9e0 commit d72b26e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Test

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y gcc-mingw-w64 cmake make gcc bison flex
- name: Build for Linux
run: |
cmake -DCMAKE_BUILD_TYPE=Debug .
make
mv ./KariLang ./KariLang-Linux-x86-64
- name: Build for Windows
run: |
x86_64-w64-mingw32-gcc -Wall -g \
./src/main.c \
./src/semantics.c \
./src/interpreter.c \
./src/lex.yy.c \
./src/parser.tab.c \
-o ./KariLang-Windows-x86-64.exe
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Build
name: Release

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
tags:
- "v*.*.*"

jobs:
build:
Expand Down Expand Up @@ -37,7 +36,6 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
KariLang-Windows-x86-64.exe
Expand Down

0 comments on commit d72b26e

Please sign in to comment.