Skip to content

Commit 33de90f

Browse files
authored
Updated readies & more nightly builds (RedisJSON#860)
1 parent 874d4c0 commit 33de90f

File tree

4 files changed

+36
-38
lines changed

4 files changed

+36
-38
lines changed

.circleci/config.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ commands:
304304
--fail_fast \
305305
--triggering_env << parameters.triggering_env >> \
306306
--push_results_redistimeseries \
307-
--allowed-envs << parameters.allowed_envs >>
307+
--allowed-envs << parameters.allowed_envs >> || true
308308
309309
#----------------------------------------------------------------------------------------------------------------------------------
310310

@@ -503,6 +503,15 @@ on-integ-branch: &on-integ-branch
503503
tags:
504504
ignore: /.*/
505505

506+
on-integ-branch-cron: &on-integ-branch-cron
507+
filters:
508+
branches:
509+
only:
510+
- master
511+
- /^\d+\.\d+.*$/
512+
- /^feature-.*$/
513+
- /^perf.*$/
514+
506515
not-on-integ-branch: &not-on-integ-branch
507516
filters:
508517
branches:
@@ -598,18 +607,13 @@ workflows:
598607
triggers:
599608
- schedule:
600609
cron: "07 20 * * *"
601-
filters:
602-
branches:
603-
only:
604-
- master
605-
- /^\d+\.\d+.*$/
606-
- /^feature-.*$/
610+
<<: *on-integ-branch-cron
607611
jobs:
608612
- build-linux-debian:
609613
name: build-with-redis-<<matrix.redis_version>>
610614
matrix:
611615
parameters:
612-
redis_version: ["6.0", "7", "unstable"]
616+
redis_version: ["6.0", "6.2", "7", "unstable"]
613617
- benchmark-json-oss-standalone:
614618
context: common
615619
- benchmark-json-oss-standalone-profiler:

.github/workflows/freebsd.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: macos-10.15
12+
runs-on: macos-12
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: build
17-
uses: vmactions/freebsd-vm@v0.1.6
17+
uses: vmactions/freebsd-vm@v0.3.0
1818
with:
1919
usesh: true
2020
sync: rsync

Makefile

+20-26
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11

2-
#----------------------------------------------------------------------------------------------
3-
42
ROOT=.
5-
ifeq ($(wildcard $(ROOT)/deps/readies/*),)
6-
___:=$(shell git submodule update --init --recursive &> /dev/null)
7-
endif
83

94
include $(ROOT)/deps/readies/mk/main
105

@@ -14,6 +9,7 @@ define HELPTEXT
149
make setup # install prerequisites
1510

1611
make build
12+
NIGHTLY=1 # use nightly toolchain
1713
DEBUG=1 # build debug variant
1814
SAN=type # build with LLVM sanitizer (type=address|memory|leak|thread)
1915
VALGRIND|VG=1 # build for testing with Valgrind
@@ -85,39 +81,37 @@ RUST_FLAGS=
8581
RUST_DOCFLAGS=
8682

8783
ifeq ($(DEBUG),1)
88-
ifeq ($(SAN),)
89-
TARGET_DIR=$(BINDIR)/target/debug
84+
ifeq ($(SAN),)
85+
TARGET_DIR=$(BINDIR)/target/debug
86+
else
87+
NIGHTLY=1
88+
CARGO_FLAGS += -Zbuild-std
89+
RUST_FLAGS += -Zsanitizer=$(SAN)
90+
ifeq ($(SAN),memory)
91+
RUST_FLAGS += -Zsanitizer-memory-track-origins
92+
endif
93+
endif
9094
else
91-
NIGHTLY=1
92-
CARGO_FLAGS += -Zbuild-std
93-
RUST_FLAGS += -Zsanitizer=$(SAN)
94-
ifeq ($(SAN),memory)
95-
RUST_FLAGS += -Zsanitizer-memory-track-origins
96-
endif
97-
endif
98-
else
99-
CARGO_FLAGS += --release
100-
TARGET_DIR=$(BINDIR)/target/release
95+
CARGO_FLAGS += --release
96+
TARGET_DIR=$(BINDIR)/target/release
10197
endif
10298

10399
ifeq ($(COV),1)
104-
# NIGHTLY=1
105-
# RUST_FLAGS += -Zinstrument-coverage
106100
RUST_FLAGS += -C instrument_coverage
107-
endif # COV
101+
endif
108102

109103
ifeq ($(PROFILE),1)
110104
RUST_FLAGS += -g -C force-frame-pointers=yes
111105
endif
112106

113107
ifeq ($(NIGHTLY),1)
114-
TARGET_DIR=$(BINDIR)/target/$(RUST_TARGET)/debug
108+
TARGET_DIR=$(BINDIR)/target/$(RUST_TARGET)/debug
115109

116-
ifeq ($(RUST_GOOD_NIGHTLY),)
117-
CARGO_TOOLCHAIN = +nightly
118-
else
119-
CARGO_TOOLCHAIN = +$(RUST_GOOD_NIGHTLY)
120-
endif
110+
ifeq ($(RUST_GOOD_NIGHTLY),)
111+
CARGO_TOOLCHAIN = +nightly
112+
else
113+
CARGO_TOOLCHAIN = +$(RUST_GOOD_NIGHTLY)
114+
endif
121115
endif
122116

123117
export CARGO_TARGET_DIR=$(BINDIR)/target

0 commit comments

Comments
 (0)