Skip to content

Commit 25ff32a

Browse files
committed
Merge branch 'develop'
2 parents ac6604b + 6d7431c commit 25ff32a

234 files changed

Lines changed: 5353 additions & 5565 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cmake.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ name: C++ CMake Test
44
on:
55
# every day-of-month 1st at 00:00 UTC
66
schedule:
7-
# prettier-ignore
8-
- cron: '0 0 1 * *'
7+
- cron: "0 0 1 * *"
98
workflow_dispatch:
109

1110
env:

.github/workflows/go.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ name: Go Test
44
on:
55
# every day-of-month 1st at 00:00 UTC
66
schedule:
7-
# prettier-ignore
8-
- cron: '0 0 1 * *'
7+
- cron: "0 0 1 * *"
98
workflow_dispatch:
109

1110
jobs:
@@ -21,10 +20,9 @@ jobs:
2120
- name: Setup Go
2221
uses: actions/setup-go@v5
2322
with:
24-
# prettier-ignore
25-
go-version: '1.22'
23+
go-version: "1.23"
2624
cache: true
27-
cache-dependency-path: '**/go.sum'
25+
cache-dependency-path: "**/go.sum"
2826

2927
- name: Download dependencies
3028
working-directory: ${{github.workspace}}/go-algorithm

.github/workflows/gradle.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ name: Java Gradle Test
44
on:
55
# every day-of-month 1st at 00:00 UTC
66
schedule:
7-
# prettier-ignore
8-
- cron: '0 0 1 * *'
7+
- cron: "0 0 1 * *"
98
workflow_dispatch:
109

1110
jobs:
@@ -21,9 +20,8 @@ jobs:
2120
- name: Setup JDK
2221
uses: actions/setup-java@v4
2322
with:
24-
# prettier-ignore
25-
distribution: 'temurin'
26-
java-version: '21'
23+
distribution: "temurin"
24+
java-version: "21"
2725

2826
- name: Setup Gradle
2927
uses: gradle/actions/setup-gradle@v3

.github/workflows/link-check.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Markdown Link Check
33
on:
44
# every sunday at 23:00 UTC
55
schedule:
6-
# prettier-ignore
7-
- cron: '0 23 * * 0'
6+
- cron: "0 23 * * 0"
87
workflow_call:
98
workflow_dispatch:
109

@@ -16,5 +15,4 @@ jobs:
1615
- uses: umbrelladocs/action-linkspector@v1
1716
with:
1817
fail_on_error: true
19-
# prettier-ignore
20-
config_file: '.config/linkspector.yml'
18+
config_file: ".config/linkspector.yml"

.github/workflows/poetry.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/uv.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Python uv Test
2+
3+
on:
4+
# every day-of-month 1st at 00:00 UTC
5+
schedule:
6+
- cron: "0 0 1 * *"
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
check-links:
14+
uses: ./.github/workflows/link-check.yml
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
defaults:
20+
run:
21+
working-directory: python-algorithm
22+
23+
steps:
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
26+
- name: Setup Python
27+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
28+
with:
29+
python-version: "3.12"
30+
31+
- name: Setup uv
32+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
33+
with:
34+
enable-cache: true
35+
36+
- name: Install dependencies
37+
run: uv sync --locked --group test
38+
39+
- name: Test
40+
run: uv run --no-sync pytest

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD033 MD036 -->
44

5-
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Poetry Test](https://github.com/codejsha/algorithm-examples/actions/workflows/poetry.yml/badge.svg) ![Go Test](https://github.com/codejsha/algorithm-examples/actions/workflows/go.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
5+
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python uv Test](https://github.com/codejsha/algorithm-examples/actions/workflows/uv.yml/badge.svg) ![Go Test](https://github.com/codejsha/algorithm-examples/actions/workflows/go.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
66

77
[English](README.md) | [Korean](README_ko-KR.md)
88

@@ -15,8 +15,8 @@ Each project is configured in specific environments, as described below:
1515
| Language | Version | Build | Packages | Remarks |
1616
| -------- | ------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
1717
| C++ | C++20 | [CMake](https://cmake.org/) | [GNU Scientific Library (GSL)](https://www.gnu.org/software/gsl/), [Google Test](https://google.github.io/googletest/), [Google Benchmark](https://github.com/google/benchmark), [fmt](https://github.com/fmtlib/fmt) | [vcpkg](https://github.com/microsoft/vcpkg) |
18-
| Python | 3.12 | [Poetry](https://python-poetry.org/) | [NumPy](https://numpy.org/), [SciPy](https://www.scipy.org/), [NetworkX](https://networkx.org/), [pytest](https://docs.pytest.org/), [pytest-benchmark](https://pytest-benchmark.readthedocs.io/en/latest/) | |
19-
| Go | 1.22 | [Go](https://pkg.go.dev/cmd/go) | [Gonum](https://github.com/gonum/gonum), [Testify](https://github.com/stretchr/testify) | |
18+
| Python | 3.12 | [uv](https://docs.astral.sh/uv/) | [NumPy](https://numpy.org/), [SciPy](https://www.scipy.org/), [NetworkX](https://networkx.org/), [pytest](https://docs.pytest.org/), [pytest-benchmark](https://pytest-benchmark.readthedocs.io/en/latest/) | |
19+
| Go | 1.23 | [Go](https://pkg.go.dev/cmd/go) | [Gonum](https://github.com/gonum/gonum), [Testify](https://github.com/stretchr/testify) | |
2020
| Java | 21 | [Gradle](https://gradle.org/) | [Google Guava](https://github.com/google/guava), [JUnit](https://junit.org/), [Java Microbenchmark Harness (JMH)](https://github.com/openjdk/jmh) | |
2121

2222
## Table of Contents

README_ko-KR.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD033 MD036 -->
44

5-
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python Poetry Test](https://github.com/codejsha/algorithm-examples/actions/workflows/poetry.yml/badge.svg) ![Go Test](https://github.com/codejsha/algorithm-examples/actions/workflows/go.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
5+
![C++ CMake Test](https://github.com/codejsha/algorithm-examples/actions/workflows/cmake.yml/badge.svg) ![Python uv Test](https://github.com/codejsha/algorithm-examples/actions/workflows/uv.yml/badge.svg) ![Go Test](https://github.com/codejsha/algorithm-examples/actions/workflows/go.yml/badge.svg) ![Java Gradle Test](https://github.com/codejsha/algorithm-examples/actions/workflows/gradle.yml/badge.svg)
66

77
[English](README.md) | [Korean](README_ko-KR.md)
88

@@ -15,6 +15,6 @@
1515
| Language | Version | Build | Packages | Remarks |
1616
| -------- | ------- | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
1717
| C++ | C++20 | [CMake](https://cmake.org/) | [GNU Scientific Library (GSL)](https://www.gnu.org/software/gsl/), [Google Test](https://google.github.io/googletest/), [Google Benchmark](https://github.com/google/benchmark), [fmt](https://github.com/fmtlib/fmt) | [vcpkg](https://github.com/microsoft/vcpkg) |
18-
| Python | 3.12 | [Poetry](https://python-poetry.org/) | [NumPy](https://numpy.org/), [SciPy](https://www.scipy.org/), [NetworkX](https://networkx.org/), [pytest](https://docs.pytest.org/), [pytest-benchmark](https://pytest-benchmark.readthedocs.io/en/latest/) | |
19-
| Go | 1.22 | [Go](https://pkg.go.dev/cmd/go) | [Gonum](https://github.com/gonum/gonum), [Testify](https://github.com/stretchr/testify) | |
18+
| Python | 3.12 | [uv](https://docs.astral.sh/uv/) | [NumPy](https://numpy.org/), [SciPy](https://www.scipy.org/), [NetworkX](https://networkx.org/), [pytest](https://docs.pytest.org/), [pytest-benchmark](https://pytest-benchmark.readthedocs.io/en/latest/) | |
19+
| Go | 1.23 | [Go](https://pkg.go.dev/cmd/go) | [Gonum](https://github.com/gonum/gonum), [Testify](https://github.com/stretchr/testify) | |
2020
| Java | 21 | [Gradle](https://gradle.org/) | [Google Guava](https://github.com/google/guava), [JUnit](https://junit.org/), [Java Microbenchmark Harness (JMH)](https://github.com/openjdk/jmh) | |

cpp-algorithm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(
44
cpp_algorithm
55
VERSION 1.0
66
DESCRIPTION
7-
"Algorithm examples for C++"
7+
"Algorithm examples in C++"
88
LANGUAGES CXX
99
)
1010

cpp-algorithm/CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@
109109
"binaryDir": "${sourceDir}/out/build/${presetName}",
110110
"installDir": "${sourceDir}/out/install/${presetName}",
111111
"cacheVariables": {
112-
"CMAKE_C_COMPILER": "gcc",
113-
"CMAKE_CXX_COMPILER": "g++",
112+
"CMAKE_C_COMPILER": "clang",
113+
"CMAKE_CXX_COMPILER": "clang++",
114114
"CMAKE_MAKE_PROGRAM": "ninja"
115115
},
116116
"condition": {

0 commit comments

Comments
 (0)