Arxcis / adventofcode2020

Community-project solving https://adventofcode.com/ - problems, with Github CI, Docker and support for many languages.
6 stars 8 forks source link

Question: Updating Zig will break CI for previous year? #129

Closed Avokadoen closed 2 years ago

Avokadoen commented 2 years ago

Zig has changed substantially since last year's 0.7.1

If the docker pulls zig-nightly it will probably break previous year CI, but I am guessing the CI does not run previous year?

Arxcis commented 2 years ago

CI does not pull nightly today. It pulls the specific version from last year, so all solutions from last year still work ref:

https://github.com/Arxcis/adventofcode2020/blob/main/Dockerfile#L14

If you don't believe me (or the badge), run the workflow manually here -> https://github.com/Arxcis/adventofcode2020/actions/workflows/2020.yaml

Will updating zig break last year?

Yeah probably 😅

Here is a radical idea❗

Create one Docker image per year:

Alternative