Vedran
6ee62061bc
chore_: enable windows and macos CI build ( #5840 )
...
- Added support for Windows and macOS in CI pipelines
- Added missing dependencies for Windows and x86-64-darwin
- Resolved macOS SDK version compatibility for darwin-x86_64
The `mkShell` override was necessary to ensure compatibility with the newer
macOS SDK (version 11.0) for x86_64. The default SDK (10.12) was causing build failures
because of the missing libs and frameworks. OverrideSDK creates a mapping from
the default SDK in all package categories to the requested SDK (11.0).
2024-10-25 09:40:47 +02:00
Jakub Sokołowski
c72f491324
fix(ci)_: remove workspace and tmp dir
...
This ensures we do not encounter weird errors like:
```
+ ln -s /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907 /home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go
ln: failed to create symbolic link '/home/jenkins/workspace/go_prs_linux_x86_64_main_PR-5907@tmp/go/src/github.com/status-im/status-go': File exists
script returned exit code 1
```
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-10-24 01:40:04 +02:00
Igor Sirotin
c1dd9397f7
refactor_: remove generated files from source control ( #5878 )
...
* fix_: gitignore generated files
* chore_: delete generated files
* fix_: update go generate instructions
* feat(Makefile)_: clean-generated-files target
* feat(Makefile)_: `generate` target
* fix(Makefile)_: dependent generate target
* ci_: run generate, update docker file deps
* fix(Makefile)_: remove `clean-generated-files` target
* fix(Makefile)_: simpler GO_GENERATE_CMD arg
* fix_: temp workspace GO_GENERATE_FAST_DIR
2024-10-03 20:59:44 +01:00
Jakub Sokołowski
bc984e0cb1
chore(ci)_: fix formatting, bump library version
...
Also drop unused `_assets/ci/validate-vendor.sh` script.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-08-20 09:40:22 +02:00
Igor Sirotin
ef85895f65
fix_: pass proper version to params ( #5735 )
...
* fix_: pass proper version to params
* fix_: use --dirty flag
* fix_: delete version_test
* fix_: pass proper version to artifacts
2024-08-19 16:47:11 +01:00
Jakub Sokołowski
5fd1c06bce
fix(ci)_: bump lib to 1.9.1 to make uploads public
...
Depends on:
https://github.com/status-im/status-jenkins-lib/commit/ab9aa93c
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-01 19:33:26 +02:00
Jakub Sokołowski
6e52565356
feat(ci)_: use s5cmd instead of s3cmd
...
It's actively maintained and has better concurrency support.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-01 09:49:10 +02:00
Jakub Sokołowski
769ea7799b
feat(ci)_: add ansiColor(xterm) for nice colors
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-07-01 09:47:53 +02:00
Jakub Sokołowski
b6d2b9eb53
fix(ci)_: fix Nix version label and bump library
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-06-26 17:55:26 +02:00
Alexis Pentori
f9df853e4a
nix: Updating Nix Shell and Makefile to use nix-shell
...
Signed-off-by: Alexis Pentori <alexis@status.im>
2024-04-09 12:49:06 +03:00
Anton Iakimov
c3240b296c
ci: cleanup more build artifacts
...
Should be cleaning artifacts for more than 1+1 build for each branch.
2024-02-28 15:47:23 +01:00
Jakub Sokołowski
568371e836
chore(ci): update Nix Jenkins label to 2.14 version
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-29 15:15:51 +01:00
Anton Iakimov
d1a9ad599c
feat: detect flaky tests
...
This reverts commit f12803ec95
.
2023-11-21 17:03:37 +01:00
Anton Iakimov
f12803ec95
Revert "feat: detect flaky tests"
...
There are signs that test runs became unstable.
Might be related to this commit.
This reverts commit 9f168eacea
.
2023-11-21 16:34:43 +01:00
Anton Iakimov
9f168eacea
feat: detect flaky tests
2023-11-20 15:08:51 +01:00
Ivan Belyakov
cb3a88f93a
fix(build): avoid removing untracked git changes by `make clean`
...
Use `make deep-clean` for deep cleaning
2023-11-03 07:37:48 +01:00
Jakub Sokołowski
c0c74010e7
ci: set GOCACHE to ws tmp to avoid cache poisoning
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-08-18 18:01:19 +02:00
Jakub Sokołowski
589cc965e3
ci: add timeouts to all Jenkinsfiles
...
This is especially important for tests.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-05-29 12:40:08 +02:00
Jakub Sokołowski
22bc76c39f
ci: use Nix shell for Linux library builds
...
Just noticed that was the only one not using it.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-04-06 01:12:14 +02:00
Jakub Sokołowski
34f7354e6c
ci: upgrade Jenkins library to fix getting version
...
Fixed in:
https://github.com/status-im/status-jenkins-lib/pull/56
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-02-22 13:29:28 +01:00
Jakub Sokołowski
0048b70466
ci: use WORKSPACE_TMP for TMPDIR to not abuse /run
...
Because a lot of tests use `MkdirTemp` and do not clean up.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-01-03 16:54:22 +01:00
Jakub Sokołowski
9dd80e7f1e
ci: use Nix shell to provide Android SDK for builds
...
Installing the SDK via Ansible is prone to error and not exactly
reproduceable. This way we can also track the exact tooling version as
used in Status Mobile app:
https://github.com/status-im/status-mobile/blob/develop/nix/pkgs.nix
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-05 15:48:27 +01:00
Andrea Maria Piana
4d15ae8a85
Upgrade to go 1.18
2022-05-11 12:39:54 +01:00
Jakub Sokołowski
57e5fd66fa
ci: pin builds to hosts with specific Go version
...
Otherwise Go version upgrades are a pain due to randomly hitting a host
with newer version of Go compiler.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-05-11 12:25:35 +02:00
Jakub Sokołowski
bbafc704b1
ci: fix release process broken by missing suffix
...
This fixes a type of CI failure:
https://ci.status.im/job/status-go/job/manual/1010
Which results in:
```
java.lang.NoSuchMethodError: No such DSL method 'suffix' found among steps ...
```
Also use release functions provided by `status-jenkins-lib`.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-29 08:51:32 +02:00
Jakub Sokołowski
91620b9982
ci: refactor to use status-jenkins-lib
...
This should fix issues with re-running builds while skipping some initial stages.
Also removes two libraries we made use of before.
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-05-10 14:04:55 +02:00
Jakub Sokołowski
aab93a6abb
ci: lower number of remembered jobs to 5
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-03-05 09:11:23 +01:00
Jakub Sokołowski
7ba89867ac
ci: keep only last 10 builds to reduce size
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-09-08 19:49:24 +02:00
Andrea Maria Piana
cbaf523b0e
Address feedback
2020-06-03 11:07:04 +02:00
Jakub Sokołowski
652d8a67b6
use out for output, use CGO_ENABLED=1 and GO111MODULE=off for Android and iOS ( #1574 )
2019-08-20 09:05:15 +02:00
Jakub Sokołowski
5f763439cb
add a check for already existing release tag
...
also run cleanup in post-always Jenkinsfile block
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-07-30 09:26:34 -04:00
Jakub Sokołowski
012a1b54bc
add /usr/local/go/bin as proper Go path
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-06-12 13:12:00 +02:00
Jakub Sokołowski
2af27dc6b3
build regular linux binary with xgo for uploading to GitHub
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-04-14 18:14:02 +02:00
Jakub Sokołowski
cbe50f557c
move running tests to a separate jenkins job
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-05 08:11:32 +01:00
Jakub
0238d84924
declare all parameters, fix names of files on release ( #1392 )
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-02-25 15:59:12 +01:00
Jakub Sokołowski
51ff6395b8
fix env variables pointing at android ndk for gomobile
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-02-25 12:45:06 +01:00
Jakub Sokołowski
de269e5830
add build status notifications like in status-react
...
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-02-11 17:16:21 +01:00
Ivan Daniluk
4f3f5ee574
Gomobile support ( #1164 )
2019-02-01 18:02:52 +01:00