Skip to content
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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
pull_request:
merge_group:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v5

- name: init rust-toolchain
# somehow rustup show will take care to initialize the version based on the toolchain file
run: rustup show

- name: Create iCal file for comparison
run: |
cargo run --release > ./output/feiertage_cmp.ical

- name: Check that generated iCal file is up to date
run: >
diff
<(grep -vE "DTSTAMP|CREATED|LAST-MODIFIED" ./output/feiertage.ical)
<(grep -vE "DTSTAMP|CREATED|LAST-MODIFIED" ./output/feiertage_cmp.ical)
15 changes: 3 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,13 @@ env:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2

- name: init rust-toolchain
# somehow rustup show will take care to initialize the version based on the toolchain file
run: rustup show

- name: Create iCal file
run: |
cargo run --release > ./output/feiertage.ical
rm ./output/.gitignore
- uses: actions/checkout@v5

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
148 changes: 73 additions & 75 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "feiertage"
version = "0.1.0"
edition = "2021"
version = "0.2.0"
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0"
csv = "1.1"
csv = "1.4"
serde = { version = "1.0", features = ["derive"] }
time = { version = "0.3", features = ["formatting", "macros", "parsing"] }
1 change: 0 additions & 1 deletion input/NRW.csv
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Tag der Deutschen Einheit So, 03.10.2027
Allerheiligen Mo, 01.11.2027
Weihnachten Sa, 25.12.2027
2. Weihnachtstag So, 26.12.2027
Feiertag Datum
Neujahr Sa, 01.01.2028
Karfreitag Fr, 14.04.2028
Ostermontag Mo, 17.04.2028
Expand Down
4 changes: 0 additions & 4 deletions output/.gitignore

This file was deleted.

Loading