Skip to content

Commit

Permalink
CI/CD: use --compiler-path instead of manual compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 26, 2024
1 parent 247ab84 commit 4971849
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 33 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build_gcc_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ jobs:
directory: .
add-to-path: true

- name: Build IR
run: |
julec --compiler gcc -t src/julec
- name: Build JuleC
run: |
g++-13 -w --std=c++17 dist/ir.cpp
julec --compiler gcc --compiler-path g++-13 src/julec
3 changes: 1 addition & 2 deletions .github/workflows/std_tests_gcc_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ jobs:

- name: Test - std::math::big
run: |
julec test -t --compiler gcc -o test std/math/big
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec test --compiler gcc --compiler-path g++-13 -o test std/math/big
./test
39 changes: 13 additions & 26 deletions .github/workflows/tests_gcc_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,77 +14,64 @@ jobs:

- name: Test - Standard Library
run: |
julec -t --compiler gcc tests/std
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/std
./test
- name: Test - Array OOP
run: |
julec -t --compiler gcc tests/array_oop
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/array_oop
./test
- name: Assertion
run: |
julec -t --compiler gcc tests/assertion
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/assertion
./test
- name: Test - Basic Calculator
run: |
julec -t --compiler gcc tests/basic_calculator
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/basic_calculator
- name: Test - Concurrency
run: |
julec -t --compiler gcc tests/concurrency
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/concurrency
./test
- name: Test - Exceptionals
run: |
julec -t --compiler gcc tests/exceptionals
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/exceptionals
./test
- name: Test - Generics
run: |
julec -t --compiler gcc tests/generics
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/generics
./test
- name: Test - Levenshtein Distance
run: |
julec -t --compiler gcc tests/levenshtein_distance
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/levenshtein_distance
./test
- name: Test - Map OOP
run: |
julec -t --compiler gcc tests/map_oop
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/map_oop
./test
- name: Test - QuickSort
run: |
julec -t --compiler gcc tests/quicksort
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/quicksort
./test
- name: Test - Sleep
run: |
julec -t --compiler gcc tests/sleep
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/sleep
./test
- name: Test - Syntax
run: |
julec -t --compiler gcc tests/syntax
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/syntax
./test
- name: Test - Traits
run: |
julec -t --compiler gcc tests/traits
g++-13 -w --std=c++17 dist/ir.cpp -o test
julec --compiler gcc --compiler-path g++-13 tests/traits
./test

0 comments on commit 4971849

Please sign in to comment.