Skip to content

Commit

Permalink
Merge branch 'main' into feature/v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmatthes authored Jan 6, 2024
2 parents de432d4 + 6fb0455 commit 9ac90ed
Show file tree
Hide file tree
Showing 7 changed files with 412 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/aeruginous.asy
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*********************** GNU General Public License 3.0 ***********************\
| |
| Copyright (C) 2023 Kevin Matthes |
| |
| This program is free software: you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation, either version 3 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program. If not, see <https://www.gnu.org/licenses/>. |
| |
\******************************************************************************/

// Settings.
settings.outformat = "svg";
size (50);

// Gear.
for (int i = 0; i < 42; ++i)
filldraw (
rotate (i * 360 / 42) * (
(0,1.4) -- (-.05,1.3) -- (.05,1.3) -- cycle
)
);

for (int i = 0; i < 5; ++i)
draw (rotate (72 * i) * circle ((0,1.12), .1), linewidth (1));

draw (circle ((0,0), 1), linewidth (1.5));
draw (circle ((0,0), 1.25), linewidth (1.8));

// Text.
label ("\Huge Æ", (0,0));

/******************************************************************************/
66 changes: 66 additions & 0 deletions .github/workflows/logo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
######################## GNU General Public License 3.0 ########################
## ##
## Copyright (C) 2023 Kevin Matthes ##
## ##
## This program is free software: you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation, either version 3 of the License, or ##
## (at your option) any later version. ##
## ##
## This program is distributed in the hope that it will be useful, ##
## but WITHOUT ANY WARRANTY; without even the implied warranty of ##
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ##
## GNU General Public License for more details. ##
## ##
## You should have received a copy of the GNU General Public License ##
## along with this program. If not, see <https://www.gnu.org/licenses/>. ##
## ##
################################################################################

################################################################################
##
## AUTHOR Kevin Matthes
## BRIEF Recreate the project logo.
## COPYRIGHT GPL-3.0
## DATE 2023
## FILE logo.yml
## NOTE See `LICENSE' for full license.
## See `README.md' for project details.
##
################################################################################

name: logo

on:
push:
branches-ignore:
- main
paths:
- .github/aeruginous.asy

permissions:
contents: write

jobs:
asymptote:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- uses: fregante/[email protected]

- uses: taiki-e/[email protected]
with:
tool: just

- run: |
sudo apt-get install asymptote -y
just logo
git add .
git commit --allow-empty -m '[GitHub Actions] just logo'
git push
################################################################################
4 changes: 4 additions & 0 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ features:
llvm-cov: clean
cargo llvm-cov --cobertura --output-path cobertura.xml

# Render the project logo.
logo:
asy .github/aeruginous.asy

################################################################################
Loading

0 comments on commit 9ac90ed

Please sign in to comment.