Nick Craig-Wood
d65d1a44b3
build: fix build failure on ubuntu
2024-11-21 12:05:49 +00:00
albertony
4db09331c6
build: remove required property on boolean inputs
...
Docker beta build / Build image job (push) Has been cancelled
Since boolean inputs are now properly treated as booleans, and GitHub Web GUI shows
them as checkboxes, setting required does nothing.
2024-10-03 16:31:36 +01:00
albertony
fcd3b88332
build: use inputs context in github workflow
...
Currently input options are retrieved from the event payload, via github.event.inputs,
and that still works, but boolean values are represented as strings there while in the
dedicated inputs context the boolean types are preserved, which means conditional
expressions can be simplified.
2024-10-03 16:31:36 +01:00
Nick Craig-Wood
7c02a63884
build: install NFS client libraries to allow nfsmount tests to run
2024-08-14 21:55:26 +01:00
Nick Craig-Wood
e1d935b854
build: use go1.23 for the linter
...
This reverts commit 485aa90d13
.
As the upstream problem is now fixed by golangci-lint v1.60.1
2024-08-14 18:27:13 +01:00
Nick Craig-Wood
485aa90d13
build: use go1.22 for the linter to fix excess memory usage
...
golangci-lint seems to have a bug which uses excess memory under go1.23
See: https://github.com/golangci/golangci-lint/issues/4874
2024-07-20 10:54:47 +01:00
Nick Craig-Wood
ca24447090
build: update to go1.23rc1 and make go1.21 the minimum required version
2024-07-20 10:54:47 +01:00
Dan McArdle
f82822baca
.github/workflows: Install git-annex-remote-rclone on Linux and macOS
...
Issue #7625
2024-05-13 18:44:31 +01:00
albertony
f2f559230c
bump golangci/golangci-lint-action from 4 to 6
...
Version 5 removed go cache management, and therefore also options skip-pkg-cache and
skip-build-cache, because the cache related to go itself is already handled by
actions/setup-go, and now it only caches golangci-lint analysis. Since we run multiple
golangci-lint-action steps for different goos, we want to cache package and build cache
and golangci-lint results from all of them, and therefore this commit now changes the
approach by disabling all built-in caching and introducing a separate cache step to
handle it properly.
2024-05-11 14:43:29 +02:00
albertony
29ed17d19c
build: add linting for different values of GOOS
2024-04-22 19:29:12 +02:00
albertony
db17aaf7cd
build: remove separate go module cache step as its done by setup-go
2024-04-18 12:43:26 +02:00
Dan McArdle
05e5712bc4
.github/workflows: Upgrade deprecated macos-11 to macos-latest
...
See https://github.com/actions/runner-images
2024-04-05 18:01:39 +01:00
Dan McArdle
ef42c32cc6
cmd/gitannex: Replace e2e test script with Go test
...
This commit implements milestone 2.1 for the gitannex subcommand:
https://github.com/rclone/rclone/issues/7625#issuecomment-1951403856
This rewrite makes a few improvements over the old shell script:
(1) It no longer uses the system's rclone.conf. Now, it writes the
rclone.conf file in an ephemeral directory.
(2) It no longer makes any assumptions about the contents of /tmp.
However, it now assumes that an rclone built from the HEAD commit is on
the PATH. It makes a best-effort attempt to verify this assumption, but
I'm not sure it's bulletproof.
I'm hoping that writing this in Go will enable more cross-platform
support in the future, but for now we're still restricted to Unixy
systems due to reliance on the HOME environment variable.
Issue #7625
2024-04-05 18:01:39 +01:00
dependabot[bot]
a3b661be0d
build(deps): bump golangci/golangci-lint-action from 3 to 4
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3 to 4.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-18 07:25:50 +01:00
dependabot[bot]
b06935a12e
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-19 17:19:08 +00:00
Nick Craig-Wood
13fb2fb2ec
build: update to go1.22rc1 and make go1.20 the minimum required version
2024-01-15 16:22:07 +00:00
dependabot[bot]
2f5685b405
build(deps): bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-07 16:48:50 +00:00
albertony
4506f35f2e
build: refactor version info and icon resource handling on windows
...
This makes it easier to add resources with any build method, and also when
building librclone.dll.
Goversioninfo is now used as a library, instead of running it as a tool.
2023-11-01 12:44:04 +01:00
dependabot[bot]
2677c43f26
build(deps): bump actions/checkout from 3 to 4
...
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>
2023-09-05 08:55:32 +01:00
Nick Craig-Wood
9c09cf9cf6
build: update to released go1.21
2023-08-09 22:41:19 +01:00
Nick Craig-Wood
039c260216
build: update to go1.21rc4
2023-08-03 13:53:43 +01:00
Anagh Kumar Baranwal
0ef0e908ca
build: update to go1.21rc3 and make go1.19 the minimum required version
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-07-16 10:09:25 +01:00
dependabot[bot]
3ddf824251
build(deps): bump actions/setup-go from 3 to 4
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 14:41:49 +00:00
Nick Craig-Wood
68fdff3c27
build: ensure users with no secrets (dependabot) don't run android upload step
2023-03-17 14:04:46 +00:00
Nick Craig-Wood
c003485ae3
build: ensure users with no secrets (dependabot) don't run deploy step
2023-03-17 13:49:11 +00:00
albertony
cec843dd8c
build: run workflow even if tag/branch name contains slash
2023-03-16 17:07:07 +00:00
Anagh Kumar Baranwal
3898d534f3
build: update to go1.20
...
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
2023-02-03 20:15:15 +00:00
albertony
37623732c6
build: avoid running workflow twice for pull requests with branch on main repo
2023-02-01 16:47:38 +01:00
albertony
5b82576dbf
build: fix condition for manual workflow run
...
See #5275
2023-01-24 20:46:33 +01:00
Nick Craig-Wood
1680c5af8f
build: update to go1.20rc3 and make go1.17 the minimum required version
2023-01-16 11:19:16 +00:00
Nick Craig-Wood
88c0d78639
build: update to fuse3 after bazil.org/fuse update
2023-01-16 11:19:16 +00:00
albertony
178cf821de
build: add vulnerability testing using govulncheck
2022-10-26 12:59:31 +02:00
albertony
c0a8ffcbef
build: setup-go v3 improved semver notation
2022-10-25 20:25:39 +02:00
albertony
76eeca9eae
build: setup-go v3 dropped the stable input
2022-10-25 20:25:39 +02:00
Dimitri Papadopoulos Orfanos
7e547822d6
build: update GitHub actions to latest versions
2022-09-19 19:51:07 +01:00
Nick Craig-Wood
876f791ecd
Revert "build: lint with go1.18 until golangci-lint is updated"
...
This reverts commit 2170376d1b
.
2022-08-05 16:04:54 +01:00
Nick Craig-Wood
2170376d1b
build: lint with go1.18 until golangci-lint is updated
...
See: https://github.com/golangci/golangci-lint/pull/3037
2022-08-03 18:04:58 +01:00
Nick Craig-Wood
8125b1cf08
build: update to v3 of golangci-lint action
2022-08-03 18:04:58 +01:00
Nick Craig-Wood
ba60984f33
build: update to go1.19 and make go1.17 the minimum required version
2022-08-03 18:04:58 +01:00
Nick Craig-Wood
639624184d
build: fix android build after GitHub actions change
...
Before this change the android build started failing with
gomobile: ANDROID_NDK_HOME specifies /usr/local/lib/android/sdk/ndk/25.0.8775105
which is unusable: unsupported API version 16 (not in 19..33)
This was caused by a change to github actions, but is ultimately due
to an issue in gomobile with the newest version of the SDK.
This change fixes the problem by declaring a minimum API version of 21
and using version 21 compilers to build everything and using the
default NDK in github actions.
See: https://github.com/actions/virtual-environments/issues/5930
See: https://github.com/lightningnetwork/lnd/issues/6651
2022-08-03 17:22:35 +01:00
Nick Craig-Wood
140af43c26
build: add 32 bit test runner to avoid problems like #6311
2022-07-14 20:13:03 +01:00
Nick Craig-Wood
deab86867c
build: support mount on windows/arm64 - all windows binaries now not cgo
...
This builds all windows binaries without CGO but with cmount.
cgofuse has a compile mode which works without CGO on Windows for
amd64/x86/arm64 architectures so switch to using that.
2022-04-29 18:04:21 +01:00
Nick Craig-Wood
c0c5b3bc6b
build: add rclone version step
2022-04-29 18:04:21 +01:00
Nick Craig-Wood
8ba04562c3
build: update android go build to 1.18.x and NDK to 23.1.7779620
2022-04-04 20:35:17 +01:00
Nick Craig-Wood
285747b1d1
build: update to go1.18 and make go1.16 the minimum required version
2022-04-04 20:35:17 +01:00
Nick Craig-Wood
f8073a7b63
build: ensure the Go version used for the build is always up to date #6020
2022-03-17 17:14:50 +00:00
Nick Craig-Wood
74898bac3b
build: add windows/arm64 build - NB this does not support mount yet #5828
2022-03-03 17:13:32 +00:00
Nick Craig-Wood
b447b0cd78
build: upgrade actions runner macos-11 to fix macOS build problems #5951
2022-01-27 17:33:04 +00:00
Nick Craig-Wood
4bd2386632
build: don't specify macos SDK any more as default is good enough #5951
...
This fixes the build, in particular the error:
Failed to run ["xcrun" "--sdk" "macosx11.1" "--show-sdk-path"]: exit status 1
2022-01-27 17:33:04 +00:00
Nick Craig-Wood
c968c3e41c
build: raise minimum go version to go1.15
...
This was necessary because go1.14 seems to have a modules related bug
which means it tries to build modules even though the uses of them are
all disabled with build constraints. This seems to be fixed in go1.15.
2021-11-10 16:11:12 +00:00