-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from asdawej/asdawej-patch-1
Set CI
- Loading branch information
Showing
2 changed files
with
142 additions
and
0 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,127 @@ | ||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_base: | ||
name: Build Base DLL | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build Base DLL | ||
run: | | ||
g++ -O3 -std=c++17 -fconcepts -Wall -shared -fpic src/base/*.cpp src/std/*.cpp -I include -o base.dll | ||
- name: Upload Base DLL | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: base | ||
path: base.dll | ||
|
||
build_analyzer: | ||
name: Build Analyzer DLL | ||
needs: build_base | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Base DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: base | ||
|
||
- name: Build Analyzer DLL | ||
run: | | ||
g++ -O3 -std=c++17 -fconcepts -Wall -shared -fpic src/analyzer.cpp base.dll -I include -o analyzer.dll | ||
- name: Upload Analyzer DLL | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: analyzer | ||
path: analyzer.dll | ||
|
||
build_compiler: | ||
name: Build Compiler DLL | ||
needs: build_base | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Base DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: base | ||
|
||
- name: Build Compiler DLL | ||
run: | | ||
g++ -O3 -std=c++17 -fconcepts -Wall -shared -fpic src/compiler.cpp base.dll -I include -o compiler.dll | ||
- name: Upload Compiler DLL | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: compiler | ||
path: compiler.dll | ||
|
||
build_interpreter: | ||
name: Build Interpreter DLL | ||
needs: build_base | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Base DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: base | ||
|
||
- name: Build Interpreter DLL | ||
run: | | ||
g++ -O3 -std=c++17 -fconcepts -Wall -shared -fpic src/interpreter.cpp base.dll -I include -o interpreter.dll | ||
- name: Upload Interpreter DLL | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: interpreter | ||
path: interpreter.dll | ||
|
||
build_main: | ||
name: Build Main EXE | ||
needs: [build_analyzer, build_compiler, build_interpreter] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Base DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: base | ||
|
||
- name: Download Analyzer DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: analyzer | ||
|
||
- name: Download Compiler DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: compiler | ||
|
||
- name: Download Interpreter DLL | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: interpreter | ||
|
||
- name: Build Main EXE | ||
run: | | ||
g++ -O3 -std=c++17 -fconcepts -Wall src/main.cpp *.dll -I include -o tff.exe |
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,15 @@ | ||
name: format | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
clang-format-checking: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: '.' | ||
extensions: 'c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,i,ixx,ipp,i++' | ||
clangFormatVersion: 14 | ||
inplace: False |