Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit e2a3e43

Browse files
authored
Merge branch 'violethaze74:master' into master
2 parents 6efc6ba + 38062e7 commit e2a3e43

File tree

1,157 files changed

+115328
-89958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,157 files changed

+115328
-89958
lines changed

.github/workflows/check-whitespace.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: check-whitespace
22

3-
# Get the repo with the commits(+1) in the series.
3+
# Get the repository with all commits to ensure that we can analyze
4+
# all of the commits contributed via the Pull Request.
45
# Process `git log --check` output to extract just the check errors.
5-
# Add a comment to the pull request with the check errors.
6+
# Exit with failure upon white-space issues.
67

78
on:
89
pull_request:

.github/workflows/l10n.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
name: git-l10n
2+
3+
on: [push, pull_request_target]
4+
5+
jobs:
6+
git-po-helper:
7+
if: >-
8+
endsWith(github.repository, '/git-po') ||
9+
contains(github.head_ref, 'l10n') ||
10+
contains(github.ref, 'l10n')
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- name: Setup base and head objects
16+
id: setup-tips
17+
run: |
18+
if test "${{ github.event_name }}" = "pull_request_target"
19+
then
20+
base=${{ github.event.pull_request.base.sha }}
21+
head=${{ github.event.pull_request.head.sha }}
22+
else
23+
base=${{ github.event.before }}
24+
head=${{ github.event.after }}
25+
fi
26+
echo "::set-output name=base::$base"
27+
echo "::set-output name=head::$head"
28+
- name: Run partial clone
29+
run: |
30+
git -c init.defaultBranch=master init --bare .
31+
git remote add \
32+
--mirror=fetch \
33+
origin \
34+
https://github.com/${{ github.repository }}
35+
# Fetch tips that may be unreachable from github.ref:
36+
# - For a forced push, "$base" may be unreachable.
37+
# - For a "pull_request_target" event, "$head" may be unreachable.
38+
args=
39+
for commit in \
40+
${{ steps.setup-tips.outputs.base }} \
41+
${{ steps.setup-tips.outputs.head }}
42+
do
43+
case $commit in
44+
*[^0]*)
45+
args="$args $commit"
46+
;;
47+
*)
48+
# Should not fetch ZERO-OID.
49+
;;
50+
esac
51+
done
52+
git -c protocol.version=2 fetch \
53+
--progress \
54+
--no-tags \
55+
--no-write-fetch-head \
56+
--filter=blob:none \
57+
origin \
58+
${{ github.ref }} \
59+
$args
60+
- uses: actions/setup-go@v2
61+
with:
62+
go-version: '>=1.16'
63+
- name: Install git-po-helper
64+
run: go install github.com/git-l10n/git-po-helper@main
65+
- name: Install other dependencies
66+
run: |
67+
sudo apt-get update -q &&
68+
sudo apt-get install -q -y gettext
69+
- name: Run git-po-helper
70+
id: check-commits
71+
run: |
72+
exit_code=0
73+
git-po-helper check-commits \
74+
--github-action-event="${{ github.event_name }}" -- \
75+
${{ steps.setup-tips.outputs.base }}..${{ steps.setup-tips.outputs.head }} \
76+
>git-po-helper.out 2>&1 || exit_code=$?
77+
if test $exit_code -ne 0 || grep -q WARNING git-po-helper.out
78+
then
79+
# Remove ANSI colors which are proper for console logs but not
80+
# proper for PR comment.
81+
echo "COMMENT_BODY<<EOF" >>$GITHUB_ENV
82+
perl -pe 's/\e\[[0-9;]*m//g; s/\bEOF$//g' git-po-helper.out >>$GITHUB_ENV
83+
echo "EOF" >>$GITHUB_ENV
84+
fi
85+
cat git-po-helper.out
86+
exit $exit_code
87+
- name: Create comment in pull request for report
88+
uses: mshick/add-pr-comment@v1
89+
if: >-
90+
always() &&
91+
github.event_name == 'pull_request_target' &&
92+
env.COMMENT_BODY != ''
93+
with:
94+
repo-token: ${{ secrets.GITHUB_TOKEN }}
95+
repo-token-user-login: 'github-actions[bot]'
96+
message: >
97+
${{ steps.check-commits.outcome == 'failure' && 'Errors and warnings' || 'Warnings' }}
98+
found by [git-po-helper](https://github.com/git-l10n/git-po-helper#readme) in workflow
99+
[#${{ github.run_number }}](${{ env.GITHUB_SERVER_URL }}/${{ github.repository }}/actions/runs/${{ github.run_id }}):
100+
101+
```
102+
103+
${{ env.COMMENT_BODY }}
104+
105+
```

.github/workflows/main.yml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI/PR
1+
name: CI
22

33
on: [push, pull_request]
44

@@ -7,6 +7,7 @@ env:
77

88
jobs:
99
ci-config:
10+
name: config
1011
runs-on: ubuntu-latest
1112
outputs:
1213
enabled: ${{ steps.check-ref.outputs.enabled }}${{ steps.skip-if-redundant.outputs.enabled }}
@@ -77,6 +78,7 @@ jobs:
7778
}
7879
7980
windows-build:
81+
name: win build
8082
needs: ci-config
8183
if: needs.ci-config.outputs.enabled == 'yes'
8284
runs-on: windows-latest
@@ -88,7 +90,7 @@ jobs:
8890
env:
8991
HOME: ${{runner.workspace}}
9092
NO_PERL: 1
91-
run: ci/make-test-artifacts.sh artifacts
93+
run: . /etc/profile && ci/make-test-artifacts.sh artifacts
9294
- name: zip up tracked files
9395
run: git archive -o artifacts/tracked.tar.gz HEAD
9496
- name: upload tracked files and build artifacts
@@ -97,6 +99,7 @@ jobs:
9799
name: windows-artifacts
98100
path: artifacts
99101
windows-test:
102+
name: win test
100103
runs-on: windows-latest
101104
needs: [windows-build]
102105
strategy:
@@ -115,7 +118,7 @@ jobs:
115118
- uses: git-for-windows/setup-git-for-windows-sdk@v1
116119
- name: test
117120
shell: bash
118-
run: ci/run-test-slice.sh ${{matrix.nr}} 10
121+
run: . /etc/profile && ci/run-test-slice.sh ${{matrix.nr}} 10
119122
- name: ci/print-test-failures.sh
120123
if: failure()
121124
shell: bash
@@ -127,6 +130,7 @@ jobs:
127130
name: failed-tests-windows
128131
path: ${{env.FAILED_TEST_ARTIFACTS}}
129132
vs-build:
133+
name: win+VS build
130134
needs: ci-config
131135
if: needs.ci-config.outputs.enabled == 'yes'
132136
env:
@@ -178,6 +182,7 @@ jobs:
178182
name: vs-artifacts
179183
path: artifacts
180184
vs-test:
185+
name: win+VS test
181186
runs-on: windows-latest
182187
needs: vs-build
183188
strategy:
@@ -198,8 +203,7 @@ jobs:
198203
shell: bash
199204
env:
200205
NO_SVN_TESTS: 1
201-
GIT_TEST_SKIP_REBASE_P: 1
202-
run: ci/run-test-slice.sh ${{matrix.nr}} 10
206+
run: . /etc/profile && ci/run-test-slice.sh ${{matrix.nr}} 10
203207
- name: ci/print-test-failures.sh
204208
if: failure()
205209
shell: bash
@@ -211,6 +215,7 @@ jobs:
211215
name: failed-tests-windows
212216
path: ${{env.FAILED_TEST_ARTIFACTS}}
213217
regular:
218+
name: ${{matrix.vector.jobname}} (${{matrix.vector.pool}})
214219
needs: ci-config
215220
if: needs.ci-config.outputs.enabled == 'yes'
216221
strategy:
@@ -220,21 +225,37 @@ jobs:
220225
- jobname: linux-clang
221226
cc: clang
222227
pool: ubuntu-latest
228+
- jobname: linux-sha256
229+
cc: clang
230+
os: ubuntu
231+
pool: ubuntu-latest
223232
- jobname: linux-gcc
224233
cc: gcc
234+
cc_package: gcc-8
235+
pool: ubuntu-latest
236+
- jobname: linux-TEST-vars
237+
cc: gcc
238+
os: ubuntu
239+
cc_package: gcc-8
225240
pool: ubuntu-latest
226241
- jobname: osx-clang
227242
cc: clang
228243
pool: macos-latest
229244
- jobname: osx-gcc
230245
cc: gcc
246+
cc_package: gcc-9
231247
pool: macos-latest
232248
- jobname: linux-gcc-default
233249
cc: gcc
234250
pool: ubuntu-latest
251+
- jobname: linux-leaks
252+
cc: gcc
253+
pool: ubuntu-latest
235254
env:
236255
CC: ${{matrix.vector.cc}}
256+
CC_PACKAGE: ${{matrix.vector.cc_package}}
237257
jobname: ${{matrix.vector.jobname}}
258+
runs_on_pool: ${{matrix.vector.pool}}
238259
runs-on: ${{matrix.vector.pool}}
239260
steps:
240261
- uses: actions/checkout@v2
@@ -249,6 +270,7 @@ jobs:
249270
name: failed-tests-${{matrix.vector.jobname}}
250271
path: ${{env.FAILED_TEST_ARTIFACTS}}
251272
dockerized:
273+
name: ${{matrix.vector.jobname}} (${{matrix.vector.image}})
252274
needs: ci-config
253275
if: needs.ci-config.outputs.enabled == 'yes'
254276
strategy:
@@ -257,8 +279,11 @@ jobs:
257279
vector:
258280
- jobname: linux-musl
259281
image: alpine
260-
- jobname: Linux32
282+
- jobname: linux32
283+
os: ubuntu32
261284
image: daald/ubuntu32:xenial
285+
- jobname: pedantic
286+
image: fedora
262287
env:
263288
jobname: ${{matrix.vector.jobname}}
264289
runs-on: ubuntu-latest
@@ -271,7 +296,7 @@ jobs:
271296
if: failure()
272297
- name: Upload failed tests' directories
273298
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
274-
uses: actions/upload-artifact@v2
299+
uses: actions/upload-artifact@v1
275300
with:
276301
name: failed-tests-${{matrix.vector.jobname}}
277302
path: ${{env.FAILED_TEST_ARTIFACTS}}
@@ -285,6 +310,7 @@ jobs:
285310
- uses: actions/checkout@v2
286311
- run: ci/install-dependencies.sh
287312
- run: ci/run-static-analysis.sh
313+
- run: ci/check-directional-formatting.bash
288314
sparse:
289315
needs: ci-config
290316
if: needs.ci-config.outputs.enabled == 'yes'
@@ -306,6 +332,7 @@ jobs:
306332
run: ci/install-dependencies.sh
307333
- run: make sparse
308334
documentation:
335+
name: documentation
309336
needs: ci-config
310337
if: needs.ci-config.outputs.enabled == 'yes'
311338
env:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
/git-range-diff
126126
/git-read-tree
127127
/git-rebase
128-
/git-rebase--preserve-merges
129128
/git-receive-pack
130129
/git-reflog
131130
/git-remote
@@ -190,6 +189,7 @@
190189
/gitweb/static/gitweb.min.*
191190
/config-list.h
192191
/command-list.h
192+
/hook-list.h
193193
*.tar.gz
194194
*.dsc
195195
*.deb
@@ -224,6 +224,7 @@
224224
*.lib
225225
*.res
226226
*.sln
227+
*.sp
227228
*.suo
228229
*.ncb
229230
*.vcproj

.travis.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

Documentation/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ manpage-base-url.xsl
1414
SubmittingPatches.txt
1515
tmp-doc-diff/
1616
GIT-ASCIIDOCFLAGS
17+
/.build/
1718
/GIT-EXCLUDED-PROGRAMS

0 commit comments

Comments
 (0)