forked from xerial/sqlite-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (55 loc) · 1.58 KB
/
ci.yml
File metadata and controls
69 lines (55 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# When a new revision is pushed to a PR, cancel all in-progress CI runs for that
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
checks: write
jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Prepare the toolchain
working-directory: wasm-lib
run: ./prepare-ci.sh
- name: Build SQLite
working-directory: wasm-lib
run: ./build.sh
- uses: actions/upload-artifact@v7
with:
name: libsqlite3-wasm
path: wasm-lib/libsqlite3.wasm
build:
needs: build-wasm
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java-version: [11, 17, 21, 25]
steps:
- uses: actions/checkout@v6
- name: Set up Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '${{ matrix.java-version }}'
cache: maven
- uses: actions/download-artifact@v8
with:
name: libsqlite3-wasm
- name: Test sqlite-jdbc-wasm
run: mvn -B clean install
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: success() || failure() # always run even if the previous step fails
with:
report_paths: '**/target/surefire-reports/TEST-*.xml'