ci: use VJOBS=1 for the macos v test-cleancode task too; cleanup periodic.yml

Delyan Angelov 2022-05-17 19:48:37 +03:00 committed by Jef Roosens
parent 4858a113a7
commit 68569ae598
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
2 changed files with 34 additions and 35 deletions

View File

@ -194,7 +194,7 @@ jobs:
./v cmd/tools/test_if_v_test_system_works.v ./v cmd/tools/test_if_v_test_system_works.v
./cmd/tools/test_if_v_test_system_works ./cmd/tools/test_if_v_test_system_works
- name: All code is formatted - name: All code is formatted
run: ./v test-cleancode run: VJOBS=1 ./v test-cleancode
- name: Self tests - name: Self tests
run: VJOBS=1 ./v test-self run: VJOBS=1 ./v test-self
- name: Build examples - name: Build examples

View File

@ -2,57 +2,56 @@ name: Periodic
on: on:
schedule: schedule:
- cron: '0 */2 * * *' - cron: '0 */6 * * *'
jobs: jobs:
network-tests-ubuntu: network-tests-ubuntu:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 30 timeout-minutes: 30
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies 1
run: sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind run: sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev
- name: Build v - name: Build v
run: make -j4 run: make
- name: Symlink V - name: Symlink V
run: sudo ./v symlink run: sudo ./v symlink
## - name: Run network tests ## - name: Run network tests
## run: ./v -d network test vlib/net ## run: ./v -d network test vlib/net
network-tests-macos: network-tests-macos:
runs-on: macOS-latest runs-on: macOS-latest
timeout-minutes: 30 timeout-minutes: 30
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup openssl library path - name: Setup openssl library path
run: export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/" run: export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
- name: Build V - name: Build V
run: make -j4 run: make
- name: Symlink V - name: Symlink V
run: sudo ./v symlink run: sudo ./v symlink
- name: Ensure thirdparty/cJSON/cJSON.o is compiled, before running tests. - name: Ensure thirdparty/cJSON/cJSON.o is compiled, before running tests.
run: ./v examples/json.v run: ./v examples/json.v
## - name: Run network tests ## - name: Run network tests
## run: ./v -d network test vlib/net ## run: ./v -d network test vlib/net
network-windows-msvc: network-windows-msvc:
runs-on: windows-2019 runs-on: windows-2019
timeout-minutes: 30 timeout-minutes: 30
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
VFLAGS: -cc msvc VFLAGS: -cc msvc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build - name: Build
run: | run: |
echo %VFLAGS% echo %VFLAGS%
echo $VFLAGS echo $VFLAGS
.\make.bat -msvc .\make.bat -msvc
## - name: Run network tests ## - name: Run network tests
## run: .\v.exe -d network test vlib/net ## run: .\v.exe -d network test vlib/net