Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow for DIRECTORY.md #11

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/build_directory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build DIRECTORY.md
on: [push, pull_request]

jobs:
main:
name: Update DIRECTORY.md
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Setup Git
run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Update DIRECTORY.md file
run: |
wget https://raw.githubusercontent.com/TheAlgorithms/scripts/main/build_directory_md.py
python3 build_directory_md.py Zig . .zig build.zig > DIRECTORY.md
- name: Commit changes
run: |
git diff
git commit -m "Update DIRECTORY.md" DIRECTORY.md || true
git push --force origin HEAD:$GITHUB_REF || true

35 changes: 35 additions & 0 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

## Concurrency
* Threads
* [Threadpool](https://github.com/TheAlgorithms/Zig/blob/HEAD/concurrency/threads/ThreadPool.zig)

## Datastructures
* [Linkedlist](https://github.com/TheAlgorithms/Zig/blob/HEAD/dataStructures/linkedList.zig)
* [Lrucache](https://github.com/TheAlgorithms/Zig/blob/HEAD/dataStructures/lruCache.zig)

## Math
* [Ceil](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/ceil.zig)
* [Chineseremaindertheorem](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/chineseRemainderTheorem.zig)
* [Euclidiangreatestcommondivisor](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/euclidianGreatestCommonDivisor.zig)
* [Factorial](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/factorial.zig)
* [Fibonaccirecursion](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/fibonacciRecursion.zig)
* [Gcd](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/gcd.zig)
* [Primes](https://github.com/TheAlgorithms/Zig/blob/HEAD/math/primes.zig)

## Search
* [Binarysearchtree](https://github.com/TheAlgorithms/Zig/blob/HEAD/search/binarySearchTree.zig)
* [Redblacktrees](https://github.com/TheAlgorithms/Zig/blob/HEAD/search/redBlackTrees.zig)

## Sort
* [Bubblesort](https://github.com/TheAlgorithms/Zig/blob/HEAD/sort/bubbleSort.zig)
* [Insertionsort](https://github.com/TheAlgorithms/Zig/blob/HEAD/sort/insertionSort.zig)
* [Mergesort](https://github.com/TheAlgorithms/Zig/blob/HEAD/sort/mergeSort.zig)
* [Quicksort](https://github.com/TheAlgorithms/Zig/blob/HEAD/sort/quickSort.zig)
* [Radixsort](https://github.com/TheAlgorithms/Zig/blob/HEAD/sort/radixSort.zig)

## Web
* Http
* [Client](https://github.com/TheAlgorithms/Zig/blob/HEAD/web/http/client.zig)
* [Server](https://github.com/TheAlgorithms/Zig/blob/HEAD/web/http/server.zig)
* Tls
* [X25519+Kyber768Draft00](https://github.com/TheAlgorithms/Zig/blob/HEAD/web/tls/X25519+Kyber768Draft00.zig)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#### Project

* [Algorithms](DIRECTORY.md)
* [Contributing](CONTRIBUTING.md)
* [Code of Conduct](CODE_OF_CONDUCT.md)

Expand Down
Loading