1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: upgrade to actions/checkout@v3 to avoid deprecation warnings in the CI about that action using Node.js 12

This commit is contained in:
Delyan Angelov 2023-02-21 13:40:24 +02:00
parent 4a81272914
commit b1ed1d3b32
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
23 changed files with 51 additions and 51 deletions

View File

@ -14,7 +14,7 @@ jobs:
B_CFLAGS: -g -std=c99 -w B_CFLAGS: -g -std=c99 -w
B_LFLAGS: -lm -lpthread B_LFLAGS: -lm -lpthread
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Build v - name: Build v
@ -53,7 +53,7 @@ jobs:
B_CFLAGS: -g -std=c99 -w B_CFLAGS: -g -std=c99 -w
B_LFLAGS: -lm -lpthread B_LFLAGS: -lm -lpthread
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Build V - name: Build V

View File

@ -26,7 +26,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make && ./v symlink -githubci run: make && ./v symlink -githubci
@ -67,7 +67,7 @@ jobs:
LIBGL_ALWAYS_SOFTWARE: true LIBGL_ALWAYS_SOFTWARE: true
VTMP: /tmp VTMP: /tmp
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make && ./v symlink -githubci run: make && ./v symlink -githubci

View File

@ -31,7 +31,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Show Environment - name: Show Environment
run: | run: |
@ -73,7 +73,7 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build V - name: Build V
run: | run: |

View File

@ -17,7 +17,7 @@ jobs:
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
@ -49,7 +49,7 @@ jobs:
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
- name: Install dependencies - name: Install dependencies
@ -96,7 +96,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build - name: Build
run: | run: |
echo %VFLAGS% echo %VFLAGS%

View File

@ -10,7 +10,7 @@ jobs:
env: env:
VFLAGS: -cc msvc VFLAGS: -cc msvc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x

View File

@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make run: make
- name: Check markdown line length & code examples - name: Check markdown line length & code examples
@ -31,12 +31,12 @@ jobs:
env: env:
MOPTIONS: --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/ MOPTIONS: --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make run: make
- name: Checkout previous v - name: Checkout previous v
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
repository: vlang/v repository: vlang/v
ref: master # important ref: master # important

View File

@ -14,7 +14,7 @@ jobs:
env: env:
VREPO: github.com/vlang/vc.git VREPO: github.com/vlang/vc.git
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make run: make
- name: Regenerate v.c and v_win.c - name: Regenerate v.c and v_win.c

View File

@ -20,7 +20,7 @@ jobs:
VTMP: /tmp VTMP: /tmp
steps: steps:
- name: Checkout V - name: Checkout V
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Build local v - name: Build local v
run: make run: make

View File

@ -22,7 +22,7 @@ jobs:
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
@ -108,7 +108,7 @@ jobs:
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update
@ -163,7 +163,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -268,7 +268,7 @@ jobs:
env: env:
VFLAGS: -cc clang VFLAGS: -cc clang
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -360,7 +360,7 @@ jobs:
# env: # env:
# VFLAGS: -cc gcc # VFLAGS: -cc gcc
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v3
# - name: Build V # - name: Build V
# run: make -j4 # run: make -j4
# - name: V self compilation with -autofree # - name: V self compilation with -autofree
@ -375,7 +375,7 @@ jobs:
# VFLAGS: -cc musl-gcc # VFLAGS: -cc musl-gcc
# V_CI_MUSL: 1 # V_CI_MUSL: 1
# steps: # steps:
# - uses: actions/checkout@v2 # - uses: actions/checkout@v3
# - uses: actions/setup-node@v1 # - uses: actions/setup-node@v1
# with: # with:
# node-version: 12.x # node-version: 12.x

View File

@ -23,7 +23,7 @@ jobs:
VFLAGS: -cc clang VFLAGS: -cc clang
PKG_CONFIG_PATH: /usr/local/opt/pkgconfig:/usr/local/opt/libpq/lib/pkgconfig:/usr/local/opt/openssl@3/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:/opt/homebrew/opt/libpq/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig PKG_CONFIG_PATH: /usr/local/opt/pkgconfig:/usr/local/opt/libpq/lib/pkgconfig:/usr/local/opt/openssl@3/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:/opt/homebrew/opt/libpq/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x

View File

@ -10,7 +10,7 @@ jobs:
build-module-docs: build-module-docs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make run: make
- name: Build module documentation - name: Build module documentation

View File

@ -59,7 +59,7 @@ jobs:
] ]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install linker - name: Install linker
if: ${{ startsWith(matrix.os, 'ubuntu')}} if: ${{ startsWith(matrix.os, 'ubuntu')}}

View File

@ -18,7 +18,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: No GPL licensed code, should be added accidentally - name: No GPL licensed code, should be added accidentally
run: | run: |
! grep -r --exclude="*.yml" "a GPL license" . ! grep -r --exclude="*.yml" "a GPL license" .
@ -30,7 +30,7 @@ jobs:
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Environment info - name: Environment info
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
- name: Build local v - name: Build local v
@ -47,7 +47,7 @@ jobs:
env: env:
VFLAGS: -cc gcc VFLAGS: -cc gcc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Environment info - name: Environment info
run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF run: echo $VFLAGS $GITHUB_SHA $GITHUB_REF
- name: Build local v - name: Build local v
@ -72,7 +72,7 @@ jobs:
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 10 fetch-depth: 10
@ -117,7 +117,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install zzuf - name: Install zzuf
run: sudo apt install -qq zzuf run: sudo apt install -qq zzuf
- name: Build local v - name: Build local v

View File

@ -21,7 +21,7 @@ jobs:
env: env:
MY_V_PATH: '你好 my $path, @с интервали' MY_V_PATH: '你好 my $path, @с интервали'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: ${{env.MY_V_PATH}} path: ${{env.MY_V_PATH}}
- name: Build V - name: Build V
@ -47,7 +47,7 @@ jobs:
env: env:
MY_V_PATH: '你好 my $path, @с интервали' MY_V_PATH: '你好 my $path, @с интервали'
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: ${{env.MY_V_PATH}} path: ${{env.MY_V_PATH}}
- name: Build V - name: Build V
@ -87,7 +87,7 @@ jobs:
## and that happens even for gcc builds, not just tcc ones ## and that happens even for gcc builds, not just tcc ones
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
path: ${{env.MY_V_PATH}} path: ${{env.MY_V_PATH}}
- name: Build V - name: Build V

View File

@ -12,7 +12,7 @@ jobs:
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies 1 - name: Install dependencies 1
run: sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev run: sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev
- name: Build v - name: Build v
@ -30,7 +30,7 @@ jobs:
env: env:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- 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
@ -50,7 +50,7 @@ jobs:
V_CI_PERIODIC: 1 V_CI_PERIODIC: 1
VFLAGS: -cc msvc VFLAGS: -cc msvc
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build - name: Build
run: | run: |
echo %VFLAGS% echo %VFLAGS%

View File

@ -83,7 +83,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -111,7 +111,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -138,7 +138,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -170,7 +170,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -202,7 +202,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -234,7 +234,7 @@ jobs:
VJOBS: 1 VJOBS: 1
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x

View File

@ -24,7 +24,7 @@ jobs:
VTEST_TOML_DO_YAML_CONVERSION: 1 VTEST_TOML_DO_YAML_CONVERSION: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update sudo apt-get update

View File

@ -18,7 +18,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 121 timeout-minutes: 121
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make && sudo ./v symlink run: make && sudo ./v symlink

View File

@ -15,7 +15,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install google benchmark - name: Install google benchmark
run: | run: |
git clone https://github.com/google/benchmark.git git clone https://github.com/google/benchmark.git

View File

@ -21,7 +21,7 @@ jobs:
distribution: 'adopt' distribution: 'adopt'
java-version: 8 java-version: 8
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make && sudo ./v symlink run: make && sudo ./v symlink
@ -54,7 +54,7 @@ jobs:
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build V - name: Build V
run: make && sudo ./v symlink run: make && sudo ./v symlink

View File

@ -17,7 +17,7 @@ jobs:
env: env:
VFLAGS: -gc none VFLAGS: -gc none
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: | run: |

View File

@ -16,7 +16,7 @@ jobs:
env: env:
VFLAGS: -cc tcc -no-retry-compilation VFLAGS: -cc tcc -no-retry-compilation
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install dependencies - name: Install dependencies
run: sudo apt-get install --quiet -y libssl-dev run: sudo apt-get install --quiet -y libssl-dev
- name: Build v - name: Build v

View File

@ -23,7 +23,7 @@ jobs:
VFLAGS: -cc gcc VFLAGS: -cc gcc
VERBOSE_MAKE: 1 VERBOSE_MAKE: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -86,7 +86,7 @@ jobs:
VFLAGS: -cc msvc VFLAGS: -cc msvc
VERBOSE_MAKE: 1 VERBOSE_MAKE: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x
@ -136,7 +136,7 @@ jobs:
VTEST_SHOW_START: 1 VTEST_SHOW_START: 1
VERBOSE_MAKE: 1 VERBOSE_MAKE: 1
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
with: with:
node-version: 12.x node-version: 12.x