3 Commits

Author SHA1 Message Date
923e0331f7 Merge branch 'gitea-actions' 2023-12-02 19:15:12 +01:00
7c156be7a1 Adding a tag to specify when to build 2023-12-02 19:14:16 +01:00
a4ee3fde16 Add README.md
All checks were successful
Build / gobuild (push) Successful in 56s
2023-12-02 19:08:52 +01:00
8 changed files with 14 additions and 7 deletions

View File

@@ -1,5 +1,8 @@
name: Build name: Build
on: [push] on:
push:
tags:
- "^test$"
jobs: jobs:
gobuild: gobuild:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -14,8 +17,6 @@ jobs:
run: go build -v ./day01/*.go run: go build -v ./day01/*.go
- name: Build day two - name: Build day two
run: go build -v ./day02/*.go run: go build -v ./day02/*.go
- name: Run day one
run: go run -v ./day01/*.go
- name: Display Go version - name: Display Go version
run: go version run: go version
- name: List files in the repository - name: List files in the repository

8
README.md Normal file
View File

@@ -0,0 +1,8 @@
# Advent of Code 2023
An attempt to start programming again.
- [Day 1](./day01/trebuchet.go)
- [Day 2](./day02/lottacubes.go)
This repo gets automatically mirrored to [Github](https://github.com/Doddophonique/aoc2023).

View File

@@ -1 +0,0 @@
../inputs

View File

@@ -109,7 +109,7 @@ func CombineIndexes(s string) int {
} }
func main() { func main() {
file, err := os.Open("./inputs/day01_input") file, err := os.Open("input")
check(err) check(err)
defer file.Close() defer file.Close()

View File

@@ -1 +0,0 @@
../inputs

View File

@@ -140,7 +140,7 @@ func PrintAndWait[T any](x T) {
} }
func main() { func main() {
file, err := os.Open("./inputs/day02_input") file, err := os.Open("input")
check(err) check(err)
defer file.Close() defer file.Close()