1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-11 11:47:03 +03:00
Commit Graph

142 Commits

Author SHA1 Message Date
dependabot[bot]
f4f866f960
chore(deps): bump cachix/cachix-action from 12 to 13 (#1727)
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v13)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 09:10:48 +00:00
dependabot[bot]
f0cf3967b8
chore(deps): bump cachix/install-nix-action from 23 to 24 (#1726)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-29 09:10:24 +00:00
Taeer Bar-Yam
aa1d9335c7
print nice logs without losing speedup (#1594)
* print nice logs without losing speedup

* forgot stderr (the important one)
2023-09-12 15:54:11 +00:00
dependabot[bot]
e95ab85e79
chore(deps): bump aws-actions/configure-aws-credentials from 3 to 4 (#1596)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 3 to 4.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v3...v4)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-12 07:36:10 +00:00
Viktor Kleen
be9269a443
Fix the release artifacts workflow (#1573)
* Fix a typo in the release workflow

This changes `os.matrix` into the correct `matrix.os`.

* Use `nodeRuntimes` as required by nixpkgs master, now

* Add nix settings to github-runner.nix

* Disable diffutils tests on arm64 musl

* Add dependencies on `start-runner` in `release-artifacts.yaml`

* Use `--log-format raw-with-logs` like in the CI workflow

* Use the correct cargo package for `nickel-static`

* Adjust linker flags on arm64 musl

* Add github cli and docker to `github-runner.nix`

* Combine static binary and docker image building jobs for caching

* Allow docker access for github jobs

* Use `docker buildx` to assemble the multiplatform image
2023-09-06 09:14:59 +00:00
dependabot[bot]
795e2677fe
chore(deps): bump actions/checkout from 3 to 4 (#1572)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:52:35 +00:00
dependabot[bot]
46860193a3
chore(deps): bump cachix/install-nix-action from 22 to 23 (#1571)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 22 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v22...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 08:51:10 +00:00
Viktor Kleen
0dd1e10863
Add infrastructure for on-demand ARM64 runners on AWS (#1569)
* Add infrastructure for on-demand ARM64 runners on AWS

With this change, ARM64 release artifacts will be built automatically by
a GitHub workflow. Since GitHub doesn't offer hosted runners running on
ARM64, we're spinning up an EC2 spot instance on demand and run the jobs
building ARM64 artifacts there.

As a fun side note, the Terraform infrastructure code is written
entirely in Nickel.

* Remove unused `update-github` script

* Address comments from code review

* Address comments from code review
2023-09-04 15:41:23 +00:00
Taeer Bar-Yam
6764f23710
Speed up CI (#1549)
* cargo doc cache dependencies

* simplified version string (better caching)

* remove double suffixes (e.g. nickel-lang-doc-doc)

* partially revert pname changes

* buffer CI output

* speedup log printing without jank

* revert reverting some pname changes (+ fix)
2023-08-30 15:23:10 +00:00
dependabot[bot]
85fdb7e754
chore(deps): bump DeterminateSystems/update-flake-lock from 19 to 20 (#1543)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 19 to 20.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v19...v20)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 08:01:33 +00:00
Viktor Kleen
c6e98d849e
Fix release artifacts workflow failure (#1441)
An unintended and unnoticed side effect of reorganizing the workspace
crates seems to have been that crane puts the built static binary in a
subdirectory. Previously the derivation output was the static executable
directly. This throws off the release artifacts GitHub action.
2023-07-11 08:12:12 +00:00
Yuriy Taraday
37ab9424d5
Upload docker image to GHCR in release workflow (#1347)
* Fix typo in release-artifacts workflow

* Enable cachix substituter in release-artifacts workflow

So that we don't rebuild everything during release.

* Upload docker image to GHCR in release workflow

Also add labels recognised by GHCR to the image.
2023-06-27 16:03:01 +00:00
Viktor Kleen
00b6ce95de
Revert GitHub actions back to macos-latest (#1377)
According to https://github.com/cachix/install-nix-action/issues/183 the
MacOS problem should be resolved by #1376
2023-06-19 09:45:15 +00:00
dependabot[bot]
cb742d85f0
chore(deps): bump cachix/install-nix-action from 21 to 22 (#1376)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 21 to 22.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v21...v22)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 08:09:51 +00:00
Viktor Kleen
3e03cc7909
Move the CLI into its own crate (#1351)
* Fetch the wasm-bindgen-cli version from Cargo.lock instead of Cargo.toml

* Move the Nickel CLI to a separate crate

* Fix snapshot tests

* Rename the nickel flake output to nickel-lang-cli for consistency

* Move the nickel-lang crate into a subdirectory

* Update documentation for the new crate split

* Tweak snapshot test instructions

* Use project_root instead of ad-hoc environment variables

* Remove the library from nickel-lang-cli for now

* Rename nickel-lang to nickel-lang-lib and nickel-lang-cli to nickel-lang

* Apply suggestions from code review

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

* Tweak documentation for nickel_lang_utilities::project_root

* Use MacOS 13 github runner because of https://github.com/cachix/install-nix-action/issues/183

---------

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2023-06-16 16:34:13 +00:00
Viktor Kleen
9fed1326c9
Add instructions for building ARM64 artifacts to RELEASING.md (#1346)
* Add instructions for building ARM64 artifacts to RELEASING.md

* Update RELEASING.md

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

* Make markdownlint happy

---------

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2023-06-09 12:52:42 +00:00
Viktor Kleen
43bc8fee6a
Add a GitHub action for automatically uploading release artifacts (#1339)
* Add a GitHub action for automatically uploading release artifacts

The action is triggered on publishing a GitHub release and automaticlly
builds the `dockerImage` and `nickel-static` flake outputs for x86_64
Linux. It then uploads the results as release artifacts on GitHub.

* Apply suggestions from code review

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>

* Add a small note about release branch targets

---------

Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io>
2023-06-05 10:57:55 +00:00
dependabot[bot]
ff13b2d972
chore(deps): bump cachix/install-nix-action from 20 to 21 (#1319)
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 20 to 21.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v20...v21)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-25 10:40:09 +00:00
Yann Hamdaoui
988205650a
Fix clippy failing on master (#1275)
* Fix clippy failing on master

* Trigger deploy preview on merge queue (#1277)

---------

Co-authored-by: Viktor Kleen <viktor.kleen@tweag.io>
2023-04-24 08:50:22 +00:00
Yann Hamdaoui
3fc7ad8fde
Update GH workflows for the (new) merge queue (#1247) 2023-04-14 09:14:26 +00:00
dependabot[bot]
9514468947
chore(deps): bump DeterminateSystems/update-flake-lock from 18 to 19 (#1233)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 18 to 19.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v18...v19)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 10:42:18 +02:00
dependabot[bot]
72d11109b2
chore(deps): bump DeterminateSystems/update-flake-lock from 17 to 18 (#1206)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 17 to 18.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v17...v18)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-28 10:41:03 +02:00
Yann Hamdaoui
58df40c060
Continue on MacOS CI error (getting segfault these days) (#1205) 2023-03-27 17:33:02 +02:00
dependabot[bot]
03fbf20f4c
chore(deps): bump DeterminateSystems/update-flake-lock from 16 to 17
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 16 to 17.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v16...v17)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 01:02:47 +00:00
matthew healy
b41e6ec006 Update nix install action (#1153)
v19 seems to be causing CI failures. Updating to v20 is supposed to
fix this.
2023-03-01 13:49:26 +01:00
Lorenzo Manacorda
4cdc71c642 ci: compile benchmarks via nix 2023-02-13 10:48:18 +01:00
Lorenzo Manacorda
7a4f3ae79a ci: cancel previously running jobs 2023-02-08 10:47:38 +01:00
dependabot[bot]
0db5f2f472
chore(deps): bump cachix/install-nix-action from 18 to 19
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 19.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v19)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-08 10:30:33 +01:00
Lorenzo Manacorda
1e5c020c88
ci: revert back to nix run 2023-02-08 10:30:33 +01:00
Lorenzo Manacorda
b8028cb6e6
ci: fix nickel invocation 2023-02-08 10:30:33 +01:00
Lorenzo Manacorda
29e5ea8740
ci: accept flake config via nix.conf 2023-02-08 10:30:32 +01:00
Lorenzo Manacorda
d1ed723048
ci: use nix shell to typecheck benches 2023-02-08 10:30:32 +01:00
Lorenzo Manacorda
c1e6685a0a
ci: accept flake config 2023-02-08 10:30:32 +01:00
Lorenzo Manacorda
a11ab86321
Typecheck benchmarks too 2023-02-08 10:30:32 +01:00
Lorenzo Manacorda
253a35bd41
Compile benchmarks in main ci workflow
Closes #1042.
2023-02-08 10:30:28 +01:00
dependabot[bot]
f446a5a4a1
chore(deps): bump DeterminateSystems/update-flake-lock from 15 to 16
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 15 to 16.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v15...v16)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-20 00:15:39 +00:00
dependabot[bot]
e486f8b24b
chore(deps): bump DeterminateSystems/update-flake-lock from 14 to 15
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 14 to 15.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v14...v15)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-29 00:22:16 +00:00
Yann Hamdaoui
1ddf52bdeb
[CI] Add clippy check (#793)
* Print logs when running `nix flake check` in CI
* Add clippy to the flake checks and git hooks
* Clippy auto fix
  `cargo clippy --fix --workspace --no-deps --frozen --offline -- --deny warnings --allow "clippy::new-without-default" --allow "clippy::match_like_matches_macro"`
* Manually fix remaining Clippy warnings

Co-authored-by: Julien Debon <julien.debon@tweag.io>
2022-11-17 18:18:49 +01:00
Julien Debon
0a96acf41a Automate CI for Flake lock update Github Action 2022-11-15 16:37:31 +01:00
dependabot[bot]
741552b065 chore(deps): bump cachix/cachix-action from 11 to 12
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 11 to 12.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v11...v12)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-28 09:21:24 +02:00
Yann Hamdaoui
b33e87808b
Merge pull request #871 from tweag/dependabot/github_actions/cachix/cachix-action-11
chore(deps): bump cachix/cachix-action from 10 to 11
2022-10-13 14:49:36 +02:00
dependabot[bot]
a806f47426
chore(deps): bump cachix/cachix-action from 10 to 11
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 10 to 11.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v10...v11)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-13 00:23:38 +00:00
dependabot[bot]
272baab2b9
chore(deps): bump cachix/install-nix-action from 17 to 18
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-13 00:23:33 +00:00
dependabot[bot]
b4896c4a65
chore(deps): bump DeterminateSystems/update-flake-lock from 13 to 14
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 13 to 14.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v13...v14)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-15 00:30:10 +00:00
dependabot[bot]
631f79513c
chore(deps): bump DeterminateSystems/update-flake-lock from 12 to 13
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 12 to 13.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v12...v13)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 01:12:52 +00:00
dependabot[bot]
9c79365a71
chore(deps): bump DeterminateSystems/update-flake-lock from 11 to 12
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 11 to 12.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v11...v12)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 01:20:13 +00:00
dependabot[bot]
e66f8c62f2
chore(deps): bump DeterminateSystems/update-flake-lock from 10 to 11 (#777)
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 10 to 11.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v10...v11)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-28 14:21:11 +02:00
Yann Hamdaoui
a069bd00c9
CI: use tweag-nickel Cachix instance 2022-06-24 10:58:19 +02:00
dependabot[bot]
cdfce74951
chore(deps): bump DeterminateSystems/update-flake-lock from 9 to 10
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 9 to 10.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v9...v10)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 05:38:16 +00:00
dependabot[bot]
3677ae680d
chore(deps): bump DeterminateSystems/update-flake-lock from 8 to 9
Bumps [DeterminateSystems/update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) from 8 to 9.
- [Release notes](https://github.com/DeterminateSystems/update-flake-lock/releases)
- [Commits](https://github.com/DeterminateSystems/update-flake-lock/compare/v8...v9)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-26 00:45:17 +00:00