From 0b004c9d7a59a3494898d6c552d577aab471a337 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:19:23 +0300 Subject: [PATCH 01/13] Update and rename build.yml to build_clang_ubuntu.yml --- .github/workflows/{build.yml => build_clang_ubuntu.yml} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename .github/workflows/{build.yml => build_clang_ubuntu.yml} (71%) diff --git a/.github/workflows/build.yml b/.github/workflows/build_clang_ubuntu.yml similarity index 71% rename from .github/workflows/build.yml rename to .github/workflows/build_clang_ubuntu.yml index a1e4bf785..3f20ec4ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build_clang_ubuntu.yml @@ -1,11 +1,8 @@ -name: Build +name: Buildp on: [push, pull_request] jobs: build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] + runs-on: $ubuntu-latest steps: - uses: actions/checkout@v4 - uses: Panquesito7/setup-jule@v1.1.3 From ff475c4e82ce1f305479d418a98eea6385724786 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:20:30 +0300 Subject: [PATCH 02/13] Update build_clang_ubuntu.yml --- .github/workflows/build_clang_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_clang_ubuntu.yml b/.github/workflows/build_clang_ubuntu.yml index 3f20ec4ac..0df5f7eb3 100644 --- a/.github/workflows/build_clang_ubuntu.yml +++ b/.github/workflows/build_clang_ubuntu.yml @@ -1,4 +1,4 @@ -name: Buildp +name: Build [Clang] - Ubuntu on: [push, pull_request] jobs: build: From 8c9f76c99c17133278cac54d87cc360d8403543c Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:23:41 +0300 Subject: [PATCH 03/13] Update build_clang_ubuntu.yml --- .github/workflows/build_clang_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_clang_ubuntu.yml b/.github/workflows/build_clang_ubuntu.yml index 0df5f7eb3..89292b14d 100644 --- a/.github/workflows/build_clang_ubuntu.yml +++ b/.github/workflows/build_clang_ubuntu.yml @@ -13,4 +13,4 @@ jobs: - name: Build JuleC run: | - julec src/julec + julec --compiler clang src/julec From 437793150425b68e01f0cb02df38b56abff0455f Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:23:50 +0300 Subject: [PATCH 04/13] Create build_clang_macos.yml --- .github/workflows/build_clang_macos.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build_clang_macos.yml diff --git a/.github/workflows/build_clang_macos.yml b/.github/workflows/build_clang_macos.yml new file mode 100644 index 000000000..0ebe531c8 --- /dev/null +++ b/.github/workflows/build_clang_macos.yml @@ -0,0 +1,16 @@ +name: Build [Clang] - macOS +on: [push, pull_request] +jobs: + build: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Build JuleC + run: | + julec --compiler clang src/julec From efdc3729e790cf6d3477a9c13430b8806ef0b205 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:25:10 +0300 Subject: [PATCH 05/13] Update build_clang_ubuntu.yml --- .github/workflows/build_clang_ubuntu.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_clang_ubuntu.yml b/.github/workflows/build_clang_ubuntu.yml index 89292b14d..f500bb92f 100644 --- a/.github/workflows/build_clang_ubuntu.yml +++ b/.github/workflows/build_clang_ubuntu.yml @@ -2,7 +2,7 @@ name: Build [Clang] - Ubuntu on: [push, pull_request] jobs: build: - runs-on: $ubuntu-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: Panquesito7/setup-jule@v1.1.3 From 40165c0b3b891aa4caadac38ac778d1ae8a5dea7 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:25:29 +0300 Subject: [PATCH 06/13] Create build_gcc_ubuntu.yml --- .github/workflows/build_gcc_ubuntu.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/build_gcc_ubuntu.yml diff --git a/.github/workflows/build_gcc_ubuntu.yml b/.github/workflows/build_gcc_ubuntu.yml new file mode 100644 index 000000000..655d390e2 --- /dev/null +++ b/.github/workflows/build_gcc_ubuntu.yml @@ -0,0 +1,16 @@ +name: Build [GCC] - Ubuntu +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Build JuleC + run: | + julec --compiler gcc src/julec From ccae63fbf2dff8debb909faef7cdc201c43270e1 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:28:49 +0300 Subject: [PATCH 07/13] Create build_gcc_macos.yml --- .github/workflows/build_gcc_macos.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/build_gcc_macos.yml diff --git a/.github/workflows/build_gcc_macos.yml b/.github/workflows/build_gcc_macos.yml new file mode 100644 index 000000000..50066b0fe --- /dev/null +++ b/.github/workflows/build_gcc_macos.yml @@ -0,0 +1,20 @@ +name: Build [GCC] - macOS +on: [push, pull_request] +jobs: + build: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Build IR + run: | + julec --t src/julec + + - name: Build JuleC + run: | + g++-13 -w --std=c++17 dist/ir.cpp From 0710d0e80fb4597b2b15d43866df90a74d220320 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:30:09 +0300 Subject: [PATCH 08/13] Update build_gcc_macos.yml --- .github/workflows/build_gcc_macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_gcc_macos.yml b/.github/workflows/build_gcc_macos.yml index 50066b0fe..eb6ee6366 100644 --- a/.github/workflows/build_gcc_macos.yml +++ b/.github/workflows/build_gcc_macos.yml @@ -13,7 +13,7 @@ jobs: - name: Build IR run: | - julec --t src/julec + julec -t src/julec - name: Build JuleC run: | From fee3bd2462b3a602d3707f34fe8a062700b5cbef Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:33:38 +0300 Subject: [PATCH 09/13] Create tests_clang_ubuntu.yml --- .github/workflows/tests_clang_ubuntu.yml | 77 ++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/tests_clang_ubuntu.yml diff --git a/.github/workflows/tests_clang_ubuntu.yml b/.github/workflows/tests_clang_ubuntu.yml new file mode 100644 index 000000000..66ca60db4 --- /dev/null +++ b/.github/workflows/tests_clang_ubuntu.yml @@ -0,0 +1,77 @@ +name: Tests [Clang] - Ubuntu +on: [push, pull_request] + +jobs: + build-and-exec: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Test - Standard Library + run: | + julec --compiler clang -o test tests/std + ./test + + - name: Test - Array OOP + run: | + julec --compiler clang -o test tests/array_oop + ./test + + - name: Assertion + run: | + julec --compiler clang -o test tests/assertion + ./test + + - name: Test - Basic Calculator + run: | + julec --compiler clang -o test tests/basic_calculator + + - name: Test - Concurrency + run: | + julec --compiler clang -o test tests/concurrency + ./test + + - name: Test - Exceptionals + run: | + julec --compiler clang -o test tests/exceptionals + ./test + + - name: Test - Generics + run: | + julec --compiler clang -o test tests/generics + ./test + + - name: Test - Levenshtein Distance + run: | + julec --compiler clang -o test tests/levenshtein_distance + ./test + + - name: Test - Map OOP + run: | + julec --compiler clang -o test tests/map_oop + ./test + + - name: Test - QuickSort + run: | + julec --compiler clang -o test tests/quicksort + ./test + + - name: Test - Sleep + run: | + julec --compiler clang -o test tests/sleep + ./test + + - name: Test - Syntax + run: | + julec --compiler clang -o test tests/syntax + ./test + + - name: Test - Traits + run: | + julec --compiler clang -o test tests/traits + ./test From c717a24cb02084133f663e0cf63d1f272547701f Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:34:30 +0300 Subject: [PATCH 10/13] Update and rename tests.yml to tests_clang_macos.yml --- .../{tests.yml => tests_clang_macos.yml} | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) rename .github/workflows/{tests.yml => tests_clang_macos.yml} (56%) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests_clang_macos.yml similarity index 56% rename from .github/workflows/tests.yml rename to .github/workflows/tests_clang_macos.yml index 5dfced03e..d6686205c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests_clang_macos.yml @@ -1,13 +1,9 @@ -name: Tests +name: Tests [Clang] - macOS on: [push, pull_request] jobs: build-and-exec: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, macOS-latest] - + runs-on: macOS-latest steps: - uses: actions/checkout@v4 - uses: Panquesito7/setup-jule@v1.1.3 @@ -18,64 +14,64 @@ jobs: - name: Test - Standard Library run: | - julec -o test tests/std + julec --compiler clang -o test tests/std ./test - name: Test - Array OOP run: | - julec -o test tests/array_oop + julec --compiler clang -o test tests/array_oop ./test - name: Assertion run: | - julec -o test tests/assertion + julec --compiler clang -o test tests/assertion ./test - name: Test - Basic Calculator run: | - julec -o test tests/basic_calculator + julec --compiler clang -o test tests/basic_calculator - name: Test - Concurrency run: | - julec -o test tests/concurrency + julec --compiler clang -o test tests/concurrency ./test - name: Test - Exceptionals run: | - julec -o test tests/exceptionals + julec --compiler clang -o test tests/exceptionals ./test - name: Test - Generics run: | - julec -o test tests/generics + julec --compiler clang -o test tests/generics ./test - name: Test - Levenshtein Distance run: | - julec -o test tests/levenshtein_distance + julec --compiler clang -o test tests/levenshtein_distance ./test - name: Test - Map OOP run: | - julec -o test tests/map_oop + julec --compiler clang -o test tests/map_oop ./test - name: Test - QuickSort run: | - julec -o test tests/quicksort + julec --compiler clang -o test tests/quicksort ./test - name: Test - Sleep run: | - julec -o test tests/sleep + julec --compiler clang -o test tests/sleep ./test - name: Test - Syntax run: | - julec -o test tests/syntax + julec --compiler clang -o test tests/syntax ./test - name: Test - Traits run: | - julec -o test tests/traits + julec --compiler clang -o test tests/traits ./test From d83c6835005277db244fc36aa0104abecec331a3 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:37:55 +0300 Subject: [PATCH 11/13] Create tests_gcc_ubuntu.yml --- .github/workflows/tests_gcc_ubuntu.yml | 77 ++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .github/workflows/tests_gcc_ubuntu.yml diff --git a/.github/workflows/tests_gcc_ubuntu.yml b/.github/workflows/tests_gcc_ubuntu.yml new file mode 100644 index 000000000..5582a3eb2 --- /dev/null +++ b/.github/workflows/tests_gcc_ubuntu.yml @@ -0,0 +1,77 @@ +name: Tests [GCC] - Ubuntu +on: [push, pull_request] + +jobs: + build-and-exec: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Test - Standard Library + run: | + julec --compiler gcc -o test tests/std + ./test + + - name: Test - Array OOP + run: | + julec --compiler gcc -o test tests/array_oop + ./test + + - name: Assertion + run: | + julec --compiler gcc -o test tests/assertion + ./test + + - name: Test - Basic Calculator + run: | + julec --compiler gcc -o test tests/basic_calculator + + - name: Test - Concurrency + run: | + julec --compiler gcc -o test tests/concurrency + ./test + + - name: Test - Exceptionals + run: | + julec --compiler gcc -o test tests/exceptionals + ./test + + - name: Test - Generics + run: | + julec --compiler gcc -o test tests/generics + ./test + + - name: Test - Levenshtein Distance + run: | + julec --compiler gcc -o test tests/levenshtein_distance + ./test + + - name: Test - Map OOP + run: | + julec --compiler gcc -o test tests/map_oop + ./test + + - name: Test - QuickSort + run: | + julec --compiler gcc -o test tests/quicksort + ./test + + - name: Test - Sleep + run: | + julec --compiler gcc -o test tests/sleep + ./test + + - name: Test - Syntax + run: | + julec --compiler gcc -o test tests/syntax + ./test + + - name: Test - Traits + run: | + julec --compiler gcc -o test tests/traits + ./test From 7169145321782b94346acb855b2f0ae2c73a65fb Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:39:37 +0300 Subject: [PATCH 12/13] Update build_gcc_macos.yml --- .github/workflows/build_gcc_macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_gcc_macos.yml b/.github/workflows/build_gcc_macos.yml index eb6ee6366..6cd44c457 100644 --- a/.github/workflows/build_gcc_macos.yml +++ b/.github/workflows/build_gcc_macos.yml @@ -13,7 +13,7 @@ jobs: - name: Build IR run: | - julec -t src/julec + julec --compiler gcc -t src/julec - name: Build JuleC run: | From c2a1ffb42c4f5f91bc16ef4cfb15e85fca9acfc4 Mon Sep 17 00:00:00 2001 From: Mertcan D <54983926+mertcandav@users.noreply.github.com> Date: Fri, 2 Feb 2024 15:42:51 +0300 Subject: [PATCH 13/13] Create tests_gcc_macos.yml --- .github/workflows/tests_gcc_macos.yml | 90 +++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .github/workflows/tests_gcc_macos.yml diff --git a/.github/workflows/tests_gcc_macos.yml b/.github/workflows/tests_gcc_macos.yml new file mode 100644 index 000000000..67e465bf7 --- /dev/null +++ b/.github/workflows/tests_gcc_macos.yml @@ -0,0 +1,90 @@ +name: Tests [GCC] - macOS +on: [push, pull_request] + +jobs: + build-and-exec: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - uses: Panquesito7/setup-jule@v1.1.3 + with: + version: dev + directory: . + add-to-path: true + + - name: Test - Standard Library + run: | + julec -t --compiler gcc tests/std + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Array OOP + run: | + julec -t --compiler gcc tests/array_oop + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Assertion + run: | + julec -t --compiler gcc tests/assertion + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Basic Calculator + run: | + julec -t --compiler gcc tests/basic_calculator + g++-13 -w --std=c++17 dist/ir.cpp -o test + + - name: Test - Concurrency + run: | + julec -t --compiler gcc tests/concurrency + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Exceptionals + run: | + julec -t --compiler gcc tests/exceptionals + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Generics + run: | + julec -t --compiler gcc tests/generics + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Levenshtein Distance + run: | + julec -t --compiler gcc tests/levenshtein_distance + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Map OOP + run: | + julec -t --compiler gcc tests/map_oop + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - QuickSort + run: | + julec -t --compiler gcc tests/quicksort + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Sleep + run: | + julec -t --compiler gcc tests/sleep + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Syntax + run: | + julec -t --compiler gcc tests/syntax + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test + + - name: Test - Traits + run: | + julec -t --compiler gcc tests/traits + g++-13 -w --std=c++17 dist/ir.cpp -o test + ./test