-
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.
- Loading branch information
Showing
7 changed files
with
242 additions
and
1,731 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,124 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build_linux_x86-64: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure Sudokuer | ||
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
|
||
- name: Build Sudokuer | ||
run: cmake --build build --parallel 2 | ||
|
||
- name: Rename Executable | ||
run: mv bin/sudokuer bin/sudokuer_linux_x86-64 | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: bin/sudokuer_linux_x86-64 | ||
|
||
build_linux_x86-64_openmp: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Configure Sudokuer | ||
run: cmake -B build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DGOMP=ON | ||
|
||
- name: Build Sudokuer | ||
run: cmake --build build --parallel 2 | ||
|
||
- name: Rename Executable | ||
run: mv bin/sudokuer bin/sudokuer_linux_x86-64_openmp | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: bin/sudokuer_linux_x86-64_openmp | ||
|
||
build_windows_x86-64: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Packages | ||
run: pip install jinja2 | ||
|
||
- name: Configure Sudokuer | ||
run: cmake -B build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
|
||
- name: Build Sudokuer | ||
run: cmake --build build --parallel 2 | ||
|
||
- name: Rename Executable | ||
run: mv bin/sudokuer.exe bin/sudokuer_windows_x86-64.exe | ||
|
||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: bin/sudokuer_windows_x86-64.exe | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [build_linux_x86-64, build_linux_x86-64_openmp, build_windows_x86-64] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Download Artifacts | ||
uses: actions/download-artifact@v3 | ||
|
||
- name: Copy x86-64 Binaries to the Root Folder | ||
run: | | ||
cp artifact/sudokuer_linux_x86-64 sudokuer && cp artifact/sudokuer_windows_x86-64.exe sudokuer.exe | ||
- name: Create x86-64 Packages | ||
run: | | ||
zip -r sudokuer_windows_x86-64.zip sudokuer.exe LICENSE.md | ||
tar -czf sudokuer_linux_x86-64.tar.gz sudokuer LICENSE.md | ||
- name: Copy x86-64_openmp Binaries to the Root Folder | ||
run: | | ||
cp artifact/sudokuer_linux_x86-64_openmp sudokuer | ||
- name: Create x86-64_openmp Packages | ||
run: | | ||
tar -czf sudokuer_linux_x86-64_openmp.tar.gz sudokuer LICENSE.md | ||
- name: Release linux_x86-64 Version of Sudokuer | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{secrets.GITHUB_TOKEN}} | ||
file: sudokuer_linux_x86-64.tar.gz | ||
tag: ${{github.ref}} | ||
|
||
- name: Release linux_x86-64_openmp Version of Sudokuer | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{secrets.GITHUB_TOKEN}} | ||
file: sudokuer_linux_x86-64_openmp.tar.gz | ||
tag: ${{github.ref}} | ||
|
||
- name: Release windows_x86-64 Version of Sudokuer | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{secrets.GITHUB_TOKEN}} | ||
file: sudokuer_windows_x86-64.zip | ||
tag: ${{github.ref}} |
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
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 |
---|---|---|
@@ -1,5 +1,31 @@ | ||
<h1 align="center">Sudokuer</h1> | ||
|
||
<p align="center"> | ||
<a href="https://github.com/tjira/sudokuer/pulse"> | ||
<img src="https://img.shields.io/github/last-commit/tjira/sudokuer?logo=github&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
<a href="https://github.com/tjira/sudokuer/blob/master/LICENSE.md"> | ||
<img src="https://img.shields.io/github/license/tjira/sudokuer?logo=gitbook&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
<a href="https://github.com/tjira/sudokuer/stargazers"> | ||
<img src="https://img.shields.io/github/stars/tjira/sudokuer?logo=apachespark&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
<a href="https://github.com/tjira/sudokuer"> | ||
<img src="https://img.shields.io/github/languages/code-size/tjira/sudokuer?logo=databricks&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
<br> | ||
<a href="https://github.com/tjira/sudokuer/releases/latest"> | ||
<img src="https://img.shields.io/github/v/release/tjira/sudokuer?display_name=tag&logo=sharp&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
<a href="https://github.com/tjira/sudokuer/releases/latest"> | ||
<img src="https://img.shields.io/github/downloads/tjira/sudokuer/total?logo=markdown&logoColor=white&style=for-the-badge"/> | ||
</a> | ||
</p> | ||
|
||
<p align="center"> | ||
As the name suggests, this software can generate a valid sudoku boards with arbitrary number of solutions. | ||
</p> | ||
|
||
## ⭐ Credits | ||
|
||
* [argparse](https://github.com/p-ranav/argparse) - Argument Parser for Modern C++. |
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
Oops, something went wrong.