31 Commits

Author SHA1 Message Date
Simon Gerber
86c6dc133a
Extend "Build and Publish Python Package" workflow to build Linux aarch64 wheels
Build Linux aarch64 wheels by extending the build_wheels job in the
workflow to also run on an `ubuntu-22.04-arm` runner.

In order for this to work, the commit also extends the `install-go.sh`
helper architecture aware.
2026-03-19 10:30:49 +01:00
John Bartholomew
160987fd26 deps: update referenced github actions to latest
For GitHub first party actions (actions from the github.com/actions
organisation) we just use a major version tag. For actions from any
other source we pin to an exact commit SHA1 (and put the version in
a comment)
2026-03-12 12:26:51 +00:00
John Bartholomew
6d35a88517 chore: update to Go 1.24.5 to get support for os.Root 2026-02-18 23:06:15 +00:00
John Bartholomew
9eb5fb6ff3 chore: make CI build the bazel example with multiple Bazel versions 2026-01-26 16:58:50 +00:00
John Bartholomew
d670d5fb87 chore: fix release action to avoid creating two releases 2025-05-07 16:12:02 +01:00
John Bartholomew
1add1e1b24 ci: check that the example using a bazel module builds 2025-03-16 16:43:03 +00:00
John Bartholomew
9cd0cd006c ci: create a stable source archive attached to the release 2025-03-13 00:42:33 +00:00
John Bartholomew
7a714b9bf5 ci: build gojsonnet wheels on Mac OS
Use the GitHub setup-go action to install Go, as it is not in the
Mac OS runner images by default.

I tried but failed to get a Windows wheel build working, so that
remains disabled for now.
2025-03-12 23:11:56 +00:00
John Bartholomew
1f986a65f3 ci: pin bazel version to 7.5.0, and require up-to-date lockfile for CI build
Bazel 7 is currently in maintenance and supported to the end of 2026.

The CI build should require an up-to-date lockfile so that we can try
to catch before merging if Bazel dep changes are made without the
corresponding lockfile change.
2025-03-12 20:18:09 +00:00
Andrii Korotkov
bc787d68ca
chore: Switch to Go 1.23.7 and update dependencies (#794)
* chore: Update dependency versions
* Downgrade crypto to fix bazel CI
* Switch to Go 1.23.7 and update dependencies

Signed-off-by: Andrii Korotkov <andrii.korotkov@verkada.com>
2025-03-11 03:29:01 +00:00
John Bartholomew
7b5c93866b ci: fix incorrect use of target_commitish in goreleaser release 2025-02-22 23:18:43 +00:00
John Bartholomew
06e51ba2c0 ci: grant goreleaser write permission to create releases 2025-02-22 23:05:08 +00:00
John Bartholomew
d1cde74e2c inject proposed version when running goreleaser 2025-02-22 23:02:15 +00:00
John Bartholomew
3c92d79e96 ci: python cibuildwheel updates for go-jsonnet
- Checkout with submodules, otherwise the sdist won't include libjsonnet.h
- Install golang in the cibuildwheel build container.
- Skip musllinux build; it's not working for me.
- Skip Windows platform builds; they're not working for me.

It would be nice to get the other platforms working but I have already
spent hours on this and haven't succeeded yet. Previous go-jsonnet
releases on PyPI didn't have prebuilt wheel packages anyway, so it's
still strictly better to have some rather than none even if not all
platforms are covered.
2025-02-22 20:32:22 +00:00
John Bartholomew
579361c1b5 ci: update versions of referenced github actions in ci.yml 2025-02-22 17:41:22 +00:00
John Bartholomew
e04e807f4e ci: run build-and-test on pushes to prepare-release branch 2025-02-22 17:32:12 +00:00
John Bartholomew
6f82698b7d ci: copy the publish-python.yml workflow from C++ jsonnet 2025-02-22 17:30:56 +00:00
John Bartholomew
90261f34cf ci: trigger release workflow manually 2025-02-22 17:30:56 +00:00
John Bartholomew
40f0aa57e2 ci: update release workflow action references 2025-02-22 17:30:56 +00:00
John Bartholomew
923f51b8e3 switch to go mod based goveralls in CI 2025-01-20 21:45:24 +00:00
John Bartholomew
a45dd8a8f4 chore: run GitHub CI action on more pull request activity
This corresponds to a similar commit on the C++ jsonnet repo:
a02a615def

The is intended to make it easier for me to trigger running CI on
existing pull requests.
2025-01-19 22:06:27 +00:00
Stanisław Barzowski
214a61790a
Update Go versions in CI. (#758)
Drop support for Go < 1.20.
2024-06-10 21:42:18 +01:00
itchyny
4863a88228
chore: fix CI to follow the deprecation of goreleaser flags (#755)
* chore: fix CI to follow the deprecation of goreleaser flags

* chore: fix goreleaser config file to follow deprecation notice
2024-06-10 21:25:04 +01:00
Tareq Al-Maamari
16a10df1a7
chore: bump go to 1.20 (#707)
This will also resolve few vulnerabilities.
2023-06-13 21:17:47 +01:00
Angus Lees
3f664d81b3 Add a CI test that exercises bazel builds
If it's not tested, then it doesn't work.  Add a CI test that
executes `bazel build //...` and `bazel test //...`, in addition to
the non-bazel build system.
2022-10-26 13:51:42 +01:00
Jesse-Cameron
f346241c98 fix: remove go 1.13 → 1.16 as it's incompatible with sys
according to maintainers, they only support the two latest versions:
https://github.com/golang/go/issues/55078#issuecomment-1247321657
2022-10-19 04:22:05 +01:00
Dave Cunningham
57d2b0517e Remove Go 1.12 as it seems incompatible with new x/sys 2022-05-24 20:02:38 +01:00
Lucendio
361f0838d9 Bump Go build version to 1.17
Motivation: make darwin_arm64 artifact available as part of the release

The *Installation instructions* already refers to Go v1.17 and above, and
the README.md states:

  *We recommend always using the newest stable release of Go.*

Please note, that is not yet a working change set. It appears that a

  go mod tidy

is needed to make the build step work.
2022-03-05 23:26:50 +00:00
Dave Cunningham
e3c7ddab44 Remove support for go 1.11 2021-09-09 12:45:53 +01:00
Harsimran Singh Maan
1b7cbff4cd Add github actions ci 2021-05-19 16:00:28 +02:00
Paul Rudin
a631234631 add action to build binaries with goreleaser 2020-08-08 18:31:51 +02:00