Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Pull Request Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
if: github.head_ref != ''
- name: Push Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
if: github.head_ref == ''
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: ${{matrix.jdk}}
java-version: ${{ matrix.jdk }}
distribution: 'temurin'
- name: Set up Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v5
Comment thread
aosen-xiong marked this conversation as resolved.
with:
python-version: 3.8
python-version: 3.9
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
Expand Down
10 changes: 5 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export JSR308=$(cd $(dirname "$0")/.. && pwd)

# export SHELLOPTS

if [ -d "/tmp/plume-scripts" ] ; then
git -C /tmp/plume-scripts pull -q
if [ -d "/tmp/git-scripts" ] ; then
git -C /tmp/git-scripts pull -q
else
git -C /tmp clone --depth 1 -q https://github.com/plume-lib/plume-scripts.git
git -C /tmp clone --depth 1 -q https://github.com/eisop-plume-lib/git-scripts.git
fi
Comment thread
aosen-xiong marked this conversation as resolved.

#default value is opprop. REPO_SITE may be set to other value for travis test purpose.
Expand All @@ -23,7 +23,7 @@ echo "------ Downloading everything from REPO_SITE: $REPO_SITE ------"
if [ -d $JSR308/checker-framework-inference ] ; then
(cd $JSR308/checker-framework-inference && git pull)
else
/tmp/plume-scripts/git-clone-related $REPO_SITE checker-framework-inference $JSR308/checker-framework-inference
/tmp/git-scripts/git-clone-related $REPO_SITE checker-framework-inference $JSR308/checker-framework-inference
fi

(cd $JSR308/checker-framework-inference && ./.ci-build-without-test.sh && ./gradlew testLibJar)
Expand All @@ -34,7 +34,7 @@ echo "Fetching DLJC"
if [ -d $JSR308/do-like-javac ] ; then
(cd $JSR308/do-like-javac && git pull)
else
/tmp/plume-scripts/git-clone-related $REPO_SITE do-like-javac $JSR308/do-like-javac
/tmp/git-scripts/git-clone-related $REPO_SITE do-like-javac $JSR308/do-like-javac
fi


Expand Down
Loading