Skip to content

Commit 46a88c0

Browse files
authored
Merge pull request #683 from srz-zumix/develop
1.17.99.14
2 parents 1a5e5ea + 9a6c20a commit 46a88c0

36 files changed

Lines changed: 458 additions & 141 deletions

.ci/awesome_bot.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/bin/bash
22

3+
if type awesome_bot >/dev/null 2>&1; then
4+
AWESOME_BOT_EXEC="awesome_bot"
5+
else
6+
AWESOME_BOT_EXEC="bundle exec awesome_bot"
7+
fi
8+
39
awesome_bot_with_retry() {
410
local attempt_max=5
511
local -i attempt_num=1
6-
until awesome_bot "$@"; do
12+
until ${AWESOME_BOT_EXEC} "$@"; do
713
if ((attempt_num == attempt_max)); then
814
exit 1
915
fi

.github/workflows/awesome-bot.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ on:
1010
name: AsesomeBot
1111
jobs:
1212
check:
13-
runs-on: ubuntu-latest
13+
# act の場合 github.ref_protected がないのでそれを利用
14+
# act の image に libssl1.1 が入ってないので 20.04 を使う
15+
runs-on: ${{ (github.ref_protected == null && 'ubuntu-20.04') || 'ubuntu-latest' }}
1416
env:
1517
ASESOME_BOT_OPTION: --allow-redirect --allow-ssl --allow-dupe -t 60
1618
steps:
1719
- uses: actions/checkout@v3
20+
- name: Create Gemfile
21+
run: |
22+
{
23+
echo 'source "http://rubygems.org"'
24+
echo "gem 'awesome_bot'"
25+
} > Gemfile
1826
- uses: ruby/setup-ruby@v1
1927
with:
20-
ruby-version: 2.6
21-
- name: install
22-
run: gem install awesome_bot
28+
ruby-version: 3.1
29+
bundler-cache: true
2330
- name: check
2431
run: |
2532
# shellcheck disable=SC2086

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
analyze:
2626
name: Analyze
2727
runs-on: ubuntu-latest
28+
# jobs.*.if では env 参照できない
29+
# act の場合 github.ref_protected がないのでそれを利用
30+
# act では実行しない
31+
if: github.ref_protected != null
2832

2933
strategy:
3034
fail-fast: false

.github/workflows/coverage.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ on:
2424
jobs:
2525
codecov:
2626
runs-on: ubuntu-latest
27+
# jobs.*.if では env 参照できない
28+
# act の場合 github.ref_protected がないのでそれを利用
29+
# act では実行しない
30+
if: github.ref_protected != null
2731
env:
2832
USE_COVERAGE: gcov
2933
DEFS: -DIUTEST_FORCE_COLORCONSOLE=1
3034
steps:
31-
- uses: actions/checkout@master
35+
- uses: actions/checkout@v3
3236
- name: info
3337
run: |
3438
make -C test showcxxmacros
@@ -44,7 +48,7 @@ jobs:
4448
- name: test
4549
run: |
4650
make -C test test
47-
- uses: actions/upload-artifact@v2
51+
- uses: actions/upload-artifact@v3
4852
with:
4953
name: test-result
5054
path: test/*.xml
@@ -58,10 +62,14 @@ jobs:
5862

5963
coveralls:
6064
runs-on: ubuntu-latest
65+
# jobs.*.if では env 参照できない
66+
# act の場合 github.ref_protected がないのでそれを利用
67+
# act では実行しない
68+
if: github.ref_protected != null
6169
env:
6270
USE_COVERAGE: lcov
6371
steps:
64-
- uses: actions/checkout@master
72+
- uses: actions/checkout@v3
6573
- name: install dependencies
6674
run: |
6775
sudo apt-get install -qq -y lcov
@@ -80,7 +88,7 @@ jobs:
8088
- name: test
8189
run: |
8290
make -C test test
83-
- uses: actions/upload-artifact@v2
91+
- uses: actions/upload-artifact@v3
8492
with:
8593
name: test-result
8694
path: test/*.xml

.github/workflows/gtest-compat.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- '*.yaml'
1717
- '.circleci/**'
1818
- '.semaphore/**'
19+
- '.github/**'
20+
- '!.github/workflows/gtest-compat.yml'
21+
- 'docs/**'
1922
push:
2023
branches:
2124
- master
@@ -38,8 +41,13 @@ jobs:
3841
matrix:
3942
include:
4043
- gtest-version: "latest"
41-
GTEST_EXPECT_VER: 0x01110000
44+
GTEST_EXPECT_VER: 0x01120100
4245
GTEST_EXPECT_LATEST: 1
46+
- gtest-version: "release-1.12.1"
47+
# 1.12.1 only change the version number
48+
GTEST_EXPECT_VER: 0x01120000
49+
- gtest-version: "release-1.12.0"
50+
GTEST_EXPECT_VER: 0x01120000
4351
- gtest-version: "release-1.11.0"
4452
GTEST_EXPECT_VER: 0x01110000
4553
- gtest-version: "release-1.10.0"

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
echo "${GITHUB_EVENT_CONTEXT}" > github_event.json
4141
- name: store event
42-
uses: actions/upload-artifact@v1
42+
uses: actions/upload-artifact@v3
4343
with:
4444
name: github_event.json
4545
path: github_event.json
@@ -187,7 +187,7 @@ jobs:
187187
# if: always()
188188

189189
zapcc-basic-test:
190-
runs-on: ubuntu-18.04
190+
runs-on: ubuntu-latest
191191
needs: prepare
192192
container:
193193
image: docker://srzzumix/zapcc:bionic

.github/workflows/metrics.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
prepare:
24-
runs-on: ubuntu-18.04
24+
runs-on: ubuntu-latest
2525
env:
2626
HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
2727
if: >
@@ -32,17 +32,17 @@ jobs:
3232
echo "$HEAD_COMMIT_MESSAGE"
3333
3434
fused:
35-
runs-on: ubuntu-18.04
35+
runs-on: ubuntu-latest
3636
needs: prepare
3737
steps:
3838
- uses: actions/checkout@v3
3939
- name: fused
4040
id: fused
4141
run: |
4242
make -C tools/fused
43-
echo "##[set-output name=size;]$(wc -c < fused-src/iutest.hpp)"
44-
echo "##[set-output name=min_size;]$(wc -c < fused-src/iutest.min.hpp)"
45-
echo "##[set-output name=wandbox_min_size;]$(wc -c < fused-src/iutest.wandbox.min.hpp)"
43+
echo "size=$(wc -c < fused-src/iutest.hpp)" >> "${GITHUB_OUTPUT}"
44+
echo "min_size=$(wc -c < fused-src/iutest.min.hpp)" >> "${GITHUB_OUTPUT}"
45+
echo "wandbox_min_size=$(wc -c < fused-src/iutest.wandbox.min.hpp)" >> "${GITHUB_OUTPUT}"
4646
- name: send metrics
4747
run: |
4848
curl \
@@ -63,7 +63,7 @@ jobs:
6363
password: ${{ secrets.DOCKERHUB_TOKEN }}
6464

6565
lizard:
66-
runs-on: ubuntu-18.04
66+
runs-on: ubuntu-latest
6767
needs: login
6868
steps:
6969
- uses: actions/checkout@v3
@@ -72,7 +72,7 @@ jobs:
7272
with:
7373
args: -o lizard.html --html ./include
7474
- name: Archive code metrics results
75-
uses: actions/upload-artifact@v1
75+
uses: actions/upload-artifact@v3
7676
with:
7777
name: lizard.html
7878
path: lizard.html

.github/workflows/reviewdog.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,14 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v3
5656
- uses: reviewdog/action-actionlint@v1
57+
with:
58+
reporter: github-pr-review
59+
60+
hadolint:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v3
64+
- name: hadolint
65+
uses: reviewdog/action-hadolint@v1
66+
with:
67+
reporter: github-pr-review

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fused: ## create fused src
1515
make -C tools/fused
1616

1717
editorconfig-self-lint:
18-
make -C tools/python editorconfig
18+
make -C tools/python editorconfig-self-lint
1919

2020
DAGGER_OPTS:=--log-format=plain
2121
dagger-ctest:

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,12 @@ for:
217217
install:
218218
cmd: |
219219
curl -sSL -o %CYGWIN_PATH%\%CYGWIN_SETUP_EXE% "https://cygwin.com/%CYGWIN_SETUP_EXE%"
220-
%CYGWIN_PATH%\%CYGWIN_SETUP_EXE% -qnNdO -R %CYGWIN_PATH% -s http://cygwin.mirror.constant.com -l %CYGWIN_PATH%/var/cache/setup -P make -P clang
220+
%CYGWIN_PATH%\%CYGWIN_SETUP_EXE% -qnNdO --allow-unsupported-windows -R %CYGWIN_PATH% -s http://cygwin.mirror.constant.com -l %CYGWIN_PATH%/var/cache/setup -P make -P clang
221221
before_build: *noop
222222
build_script:
223223
cmd: |
224224
cd test
225-
make showcxxmacros showstdlbfeatures
225+
make showcxxmacros check_stdlib showstdlbfeatures
226226
make -j4 OUTPUTXML=%OUTPUTXML_TYPE%
227227
test_script:
228228
cmd: make test OUTPUTXML=%OUTPUTXML_TYPE% && make report
@@ -256,7 +256,7 @@ for:
256256
build_script:
257257
cmd: |
258258
cd test
259-
mingw32-make showcxxversion showcxxmacros showstdlbfeatures
259+
mingw32-make showcxxversion showcxxmacros check_stdlib showstdlbfeatures
260260
mingw32-make -j4 %MAKE_OPTIONS% OUTPUTXML=%OUTPUTXML_TYPE%
261261
test_script:
262262
cmd: mingw32-make test %MAKE_OPTIONS% OUTPUTXML=%OUTPUTXML_TYPE% && mingw32-make report
@@ -269,7 +269,7 @@ for:
269269
before_build:
270270
cmd: |
271271
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd.bat"
272-
cd test && nmake showcxxmacros showstdlbfeatures
272+
cd test && nmake showcxxmacros check_stdlib showstdlbfeatures
273273
nmake minimum_tests && minimum_tests.exe --spec
274274
nmake clean
275275
build_script:

0 commit comments

Comments
 (0)