Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 360
timeout-minutes: 60
permissions:
security-events: write
packages: read
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/developer-guide-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build Developer Guide Docs

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'docs/developer-guide/**'
- 'docs/demos/**'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/javadocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Build JavaDocs

on:
pull_request:
paths:
- 'CodenameOne/src/**/*.java'
- 'Ports/**/src/**/*.java'
- 'maven/**/src/main/java/**/*.java'
- '.github/scripts/build_javadocs.sh'
- '.github/workflows/javadocs.yml'
push:
branches:
- master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/parparvm-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Save JDK 8 Path
run: echo "JDK_8_HOME=$JAVA_HOME" >> $GITHUB_ENV

Expand Down Expand Up @@ -73,13 +74,12 @@ jobs:
- name: Save JDK 25 Path
run: echo "JDK_25_HOME=$JAVA_HOME" >> $GITHUB_ENV

# Restore JDK 8 as the main runner
# Restore JDK 8 as the main runner (cache is on the first setup-java JDK 8 above)
- name: Restore JDK 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
cache: 'maven'

- name: Set up Node
uses: actions/setup-node@v4
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,6 @@ jobs:
- name: Build iOS VM
run: mvn -f vm/ByteCodeTranslator/pom.xml package

- name: Build CLDC 11 VM
run: |
ANT_OPTS_ARGS=""
if [ "${{ matrix.java-version }}" != "8" ]; then
ANT_OPTS_ARGS="-Djavac.source=1.8 -Djavac.target=1.8"
fi
ant $ANT_OPTS_ARGS -noinput -buildfile Ports/CLDC11/build.xml jar

- name: Upload a Build Artifact
if: matrix.java-version == 8
uses: actions/upload-artifact@v4
Expand Down
34 changes: 33 additions & 1 deletion .github/workflows/scripts-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set TMPDIR
run: echo "TMPDIR=${{ runner.temp }}" >> $GITHUB_ENV

- name: Cache codenameone-tools
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/codenameone-tools
key: ${{ runner.os }}-cn1-tools-${{ hashFiles('scripts/setup-workspace.sh') }}
restore-keys: |
${{ runner.os }}-cn1-tools-

- name: Set up Java 8 for ParparVM
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -83,12 +94,33 @@ jobs:
with:
node-version: '20'

- name: Cache npm modules for scripts/
uses: actions/cache@v4
with:
path: scripts/node_modules
key: ${{ runner.os }}-scripts-npm-playwright-v1
restore-keys: |
${{ runner.os }}-scripts-npm-

- name: Cache Playwright browsers
id: playwright-cache
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-chromium-v1
restore-keys: |
${{ runner.os }}-playwright-

- name: Install Playwright Chromium
run: |
cd scripts
npm init -y 2>/dev/null || true
npm install playwright
npx playwright install --with-deps chromium
if [ "${{ steps.playwright-cache.outputs.cache-hit }}" = "true" ]; then
npx playwright install-deps chromium
else
npx playwright install --with-deps chromium
fi

- name: Install Xvfb for headless Java AWT
run: sudo apt-get update && sudo apt-get install -y xvfb
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/website-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Build Hugo Website

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'docs/website/**'
- 'scripts/cn1playground/**'
Expand Down
Loading