-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from AbdelrahmanKhaledd/fix-linux-build
Fix: headers including, undefined `readline<-RETURN` macro from CodeGen.cpp
- Loading branch information
Showing
7 changed files
with
211 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
name: CMake on a single platform on Linux | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Initialize submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: Install Wasmer | ||
run: curl https://get.wasmer.io -sSfL | WASMER_DIR=lib/wasmer sh | ||
|
||
- name: Upload Wasmer as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wasmer | ||
path: ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Cache CMake build | ||
uses: actions/cache@v3 | ||
with: | ||
path: build | ||
key: ${{ runner.os }}-build-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-build- | ||
- name: Cache CMake dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.cache | ||
key: ${{ runner.os }}-cmake-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-cmake- | ||
- name: Install libreadline-dev | ||
run: sudo apt-get install -y libreadline-dev | ||
|
||
- name: Build project | ||
working-directory: ${{ github.workspace }} | ||
run: ./build.sh | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build | ||
|
||
lexer-test: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build | ||
|
||
- name: Download Wasmer artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasmer | ||
path: ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Make LexerTest Executable | ||
run: chmod +x ${{ github.workspace }}/build/LexerTest | ||
|
||
- name: Output Wasmer directory | ||
run: ls -laR ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Run Lexer Test | ||
working-directory: ${{ github.workspace }}/build | ||
run: ./LexerTest | ||
|
||
parser-test: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build | ||
|
||
- name: Download Wasmer artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasmer | ||
path: ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Make ParserTest Executable | ||
run: chmod +x ${{ github.workspace }}/build/ParserTest | ||
|
||
- name: Run Parser Test | ||
working-directory: ${{ github.workspace }}/build | ||
run: ./ParserTest | ||
|
||
typechecker-test: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build | ||
|
||
- name: Download Wasmer artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasmer | ||
path: ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Make TypeCheckerTest Executable | ||
run: chmod +x ${{ github.workspace }}/build/TypeCheckerTest | ||
|
||
- name: Run TypeChecker Test | ||
working-directory: ${{ github.workspace }}/build | ||
run: ./TypeCheckerTest | ||
|
||
codegen-test: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download build artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: build | ||
path: ${{ github.workspace }}/build | ||
|
||
- name: Download Wasmer artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wasmer | ||
path: ${{ github.workspace }}/lib/wasmer | ||
|
||
- name: Make CodegenTest Executable | ||
run: chmod +x ${{ github.workspace }}/build/CodegenTest | ||
|
||
- name: Run Codegen Test | ||
working-directory: ${{ github.workspace }}/build | ||
run: ./CodegenTest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ if [ ! -d "build" ]; then | |
mkdir build | ||
fi | ||
cd build | ||
g++ --version | ||
cmake .. | ||
make | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.