Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lupari committed Dec 3, 2024
0 parents commit 5b0bd22
Show file tree
Hide file tree
Showing 85 changed files with 10,231 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/main/resources/*.txt filter=git-crypt diff=git-crypt
22 changes: 22 additions & 0 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: temurin
- name: Unlock git-crypt
run: |
sudo apt-get update
sudo apt-get install -y git-crypt
echo ${{ secrets.GIT_CRYPT_KEY }} | base64 -d | git-crypt unlock -
- name: Run tests
run: sbt test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target
*.sc
project/project
4 changes: 4 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
version = "3.0.5"
runner.dialect = scala3
align.preset = more
maxColumn = 100
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# aoc2021

[![Scala CI](https://github.com/lupari/aoc2021/actions/workflows/scala.yml/badge.svg)](https://github.com/lupari/aoc2021/actions?query=workflow%3A%22Scala+CI%22)

Advent of Code 2021 (http://adventofcode.com/2021) personal exercises in Scala

For running these you need SBT (http://scala-sbt.org) installed.
11 changes: 11 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name := "aoc2021"

version := "0.1"

scalaVersion := "3.1.0"

libraryDependencies += "org.scala-lang.modules" %% "scala-parser-combinators" % "2.1.0"

libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test"

scalacOptions += "-deprecation"
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 1.5.5
Loading

0 comments on commit 5b0bd22

Please sign in to comment.