Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move misc CI checks to GitHub Actions #862

Merged
merged 38 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
cc8b890
Move misc check to Github Actions
Ao-senXiong Aug 19, 2024
c9c96af
Install required dependency
Ao-senXiong Aug 19, 2024
1536420
Remove useless code
Ao-senXiong Aug 19, 2024
cb05214
Merge branch 'master' into misc-github-actions
wmdietl Aug 20, 2024
06a32a4
Update .github/workflows/ci.yml
Ao-senXiong Aug 21, 2024
1d981f8
Merge branch 'master' into misc-github-actions
Ao-senXiong Aug 21, 2024
47caf76
Reverse order for conditional expressions
Ao-senXiong Aug 21, 2024
1b6bab2
Move install to correct place
Ao-senXiong Aug 21, 2024
dafd2e0
Use sudo
Ao-senXiong Aug 21, 2024
4f0cfcc
Also add installation for otherjdks
Ao-senXiong Aug 21, 2024
48c75b3
Also install black
Ao-senXiong Aug 21, 2024
bfcbfe9
Also install flake8 and html5validator
Ao-senXiong Aug 21, 2024
fa808cd
Attempt to set the fetch depth
wmdietl Aug 21, 2024
f3cf696
Attempt syntax tweak
wmdietl Aug 21, 2024
b2977b5
Use `with`
wmdietl Aug 21, 2024
f6e4850
Merge branch 'master' into misc-github-actions
Ao-senXiong Aug 24, 2024
0a8de8f
Merge branch 'master' into misc-github-actions
Ao-senXiong Sep 28, 2024
7ef59c9
Merge branch 'master' into misc-github-actions
Ao-senXiong Dec 15, 2024
57a29cd
Test with CI Debug
Ao-senXiong Dec 31, 2024
2fa69d4
Merge branch 'master' into misc-github-actions
Ao-senXiong Dec 31, 2024
d126f48
Empty commit for CI
Ao-senXiong Dec 31, 2024
73660b2
Also debug for CI-lint
Ao-senXiong Dec 31, 2024
55cbfe8
Merge branch 'master' into misc-github-actions
Ao-senXiong Dec 31, 2024
34c9eb9
Revert debug
Ao-senXiong Dec 31, 2024
fcc0048
Fixes Javadoc
Ao-senXiong Dec 31, 2024
30fa18f
Dependencies for manual
Ao-senXiong Dec 31, 2024
69d6125
Extra dependency for latex
Ao-senXiong Dec 31, 2024
7a554a4
Use correct suggested version for imagemagick
Ao-senXiong Dec 31, 2024
86cada4
Check which versions are available first
Ao-senXiong Dec 31, 2024
e90d1ba
Use librsvg2-bin instead
Ao-senXiong Dec 31, 2024
c278175
Install most of the dependencies from Docker image
Ao-senXiong Jan 1, 2025
809ebdc
Wording
Ao-senXiong Jan 1, 2025
105b986
Use fully qualified name
Ao-senXiong Jan 1, 2025
a4b217e
Revert fully qualified name
Ao-senXiong Jan 1, 2025
0837836
Only check misc at JDK21
Ao-senXiong Jan 1, 2025
0ddc17b
Add empty lines to reduce changes
Ao-senXiong Jan 1, 2025
d1ad2e1
Enable misc for otherjdks and revert Javadoc change
Ao-senXiong Jan 2, 2025
152b2b6
Merge branch 'master' into misc-github-actions
Ao-senXiong Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 40 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,20 @@ jobs:
fail-fast: true
matrix:
# No need to run 'cftests-junit-jdk21' on JDK 21.
script: ['typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2', 'jspecify-conformance', 'jspecify-reference-checker']
script: ['typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2', 'jspecify-conformance', 'jspecify-reference-checker', 'misc']
java_version: [21]
env:
JAVA_VERSION: ${{ matrix.java_version }}
steps:
- uses: actions/checkout@v4
if: matrix.script != 'misc'
with:
fetch-depth: 1
- uses: actions/checkout@v4
if: matrix.script == 'misc'
with:
# CI diff needs more history - 0 fetches all history.
fetch-depth: 0
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
Expand All @@ -80,7 +88,17 @@ jobs:
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2

# Setup for misc tests
- name: Install misc dependencies
if: matrix.script == 'misc'
run: |
sudo apt install -y shellcheck devscripts python3-pip \
texlive-latex-base texlive-latex-extra latexmk librsvg2-bin \
autoconf dia hevea latexmk libasound2-dev rsync pdf2svg \
libcups2-dev libfontconfig1-dev libx11-dev libxext-dev \
libxrender-dev libxrandr-dev libxtst-dev libxt-dev \
texlive-font-utils texlive-fonts-recommended texlive-latex-recommended
pip install black flake8 html5validator
- name: Run test script checker/bin-devel/test-${{ matrix.script }}
run: ./checker/bin-devel/test-${{ matrix.script }}.sh

Expand All @@ -94,7 +112,7 @@ jobs:
fail-fast: true
matrix:
# jspecify-conformance and jspecify-reference-checker only tested on JDK 21.
script: ['cftests-junit', 'cftests-nonjunit', 'cftests-junit-jdk21', 'typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2']
script: ['cftests-junit', 'cftests-nonjunit', 'cftests-junit-jdk21', 'typecheck-part1', 'typecheck-part2', 'guava', 'plume-lib', 'daikon-part1', 'daikon-part2', 'misc']
# JDK 21 used by sanity before
java: [{version: '8', experimental: false},
{version: '11', experimental: false},
Expand All @@ -106,6 +124,14 @@ jobs:
continue-on-error: ${{ matrix.java.experimental }}
steps:
- uses: actions/checkout@v4
if: matrix.script != 'misc'
with:
fetch-depth: 1
- uses: actions/checkout@v4
if: matrix.script == 'misc'
with:
# CI diff needs more history - 0 fetches all history.
fetch-depth: 0
- name: Set up JDK ${{ matrix.java.version }}
uses: actions/setup-java@v4
with:
Expand All @@ -124,7 +150,17 @@ jobs:
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4.2.2

# Setup for misc tests
- name: Install misc dependencies
if: matrix.script == 'misc'
run: |
sudo apt install -y shellcheck devscripts python3-pip \
texlive-latex-base texlive-latex-extra latexmk librsvg2-bin \
autoconf dia hevea latexmk libasound2-dev rsync pdf2svg \
libcups2-dev libfontconfig1-dev libx11-dev libxext-dev \
libxrender-dev libxrandr-dev libxtst-dev libxt-dev \
texlive-font-utils texlive-fonts-recommended texlive-latex-recommended
pip install black flake8 html5validator
- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.10.0
if: matrix.script == 'cftests-nonjunit'
Expand Down
75 changes: 0 additions & 75 deletions azure-pipelines.yml

This file was deleted.

Loading