|
1 | | -name: CI |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: [main, upf] |
6 | | - pull_request: |
7 | | - branches: [main, upf] |
8 | | - |
9 | | -jobs: |
10 | | - lint: |
11 | | - runs-on: ubuntu-latest |
12 | | - steps: |
13 | | - - name: Setup repo |
14 | | - uses: actions/checkout@v4 |
15 | | - |
16 | | - - name: Setup Deno |
17 | | - uses: denoland/setup-deno@main |
18 | | - with: |
19 | | - deno-version: "v2.x" |
20 | | - |
21 | | - - name: Check Formatting |
22 | | - run: deno fmt --check --ignore=sqlite |
23 | | - |
24 | | - - name: Lint |
25 | | - run: deno lint --ignore=sqlite |
26 | | - |
27 | | - - name: Check |
28 | | - run: deno check --ignore=sqlite |
29 | | - |
30 | | - build-and-test: |
31 | | - strategy: |
32 | | - matrix: |
33 | | - os: [ubuntu-20.04, ubuntu-24.04-arm, windows-2022, macos-14] |
34 | | - |
35 | | - runs-on: ${{ matrix.os }} |
36 | | - |
37 | | - steps: |
38 | | - - name: Checkout repo |
39 | | - uses: actions/checkout@v4 |
40 | | - with: |
41 | | - submodules: true |
42 | | - |
43 | | - - name: Install Deno |
44 | | - uses: denoland/setup-deno@main |
45 | | - with: |
46 | | - deno-version: "v2.x" |
47 | | - |
48 | | - - name: Setup MSVC Dev Env |
49 | | - if: matrix.os == 'windows-2022' |
50 | | - uses: ilammy/msvc-dev-cmd@v1 |
51 | | - |
52 | | - - name: Build sqlite3 (windows, linux) |
53 | | - if: matrix.os != 'macos-14' |
54 | | - env: |
55 | | - TARGET_ARCH: x86_64 |
56 | | - run: deno task build |
57 | | - |
58 | | - - name: Build sqlite3 (macos-x86_64) |
59 | | - if: matrix.os == 'macos-14' |
60 | | - env: |
61 | | - TARGET_ARCH: x86_64 |
62 | | - CC: clang -arch x86_64 |
63 | | - run: deno task build |
64 | | - |
65 | | - - name: Build sqlite3 (macos-aarch64) |
66 | | - if: matrix.os == 'macos-14' |
67 | | - env: |
68 | | - TARGET_ARCH: aarch64 |
69 | | - CC: clang -arch arm64 |
70 | | - run: deno task build |
71 | | - |
72 | | - - name: Run Tests |
73 | | - env: |
74 | | - DENO_SQLITE_LOCAL: 1 |
75 | | - run: deno task test |
76 | | - |
77 | | - - name: Release |
78 | | - if: ${{ github.ref == 'refs/heads/main' }} |
79 | | - uses: softprops/action-gh-release@master |
80 | | - env: |
81 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
82 | | - with: |
83 | | - tag_name: "Release Draft" |
84 | | - draft: true |
85 | | - files: | |
86 | | - build/libsqlite3.so |
87 | | - build/libsqlite3_aarch64.so |
88 | | - build/libsqlite3.dylib |
89 | | - build/libsqlite3_aarch64.dylib |
90 | | - build/sqlite3.dll |
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [main, upf] |
| 6 | + pull_request: |
| 7 | + branches: [main, upf] |
| 8 | + |
| 9 | +jobs: |
| 10 | + lint: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Setup repo |
| 14 | + uses: actions/checkout@v4 |
| 15 | + |
| 16 | + - name: Setup Deno |
| 17 | + uses: denoland/setup-deno@main |
| 18 | + with: |
| 19 | + deno-version: "v2.x" |
| 20 | + |
| 21 | + - name: Check Formatting |
| 22 | + run: deno fmt --check --ignore=sqlite |
| 23 | + |
| 24 | + - name: Lint |
| 25 | + run: deno lint --ignore=sqlite |
| 26 | + |
| 27 | + - name: Check |
| 28 | + run: deno check --ignore=sqlite |
| 29 | + |
| 30 | + build-and-test: |
| 31 | + strategy: |
| 32 | + matrix: |
| 33 | + os: [ubuntu-20.04, ubuntu-24.04-arm, windows-2022, macos-14] |
| 34 | + |
| 35 | + runs-on: ${{ matrix.os }} |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout repo |
| 39 | + uses: actions/checkout@v4 |
| 40 | + with: |
| 41 | + submodules: true |
| 42 | + |
| 43 | + - name: Install Deno |
| 44 | + uses: denoland/setup-deno@main |
| 45 | + with: |
| 46 | + deno-version: "v2.x" |
| 47 | + |
| 48 | + - name: Setup MSVC Dev Env |
| 49 | + if: matrix.os == 'windows-2022' |
| 50 | + uses: ilammy/msvc-dev-cmd@v1 |
| 51 | + |
| 52 | + - name: Build sqlite3 (windows, linux) |
| 53 | + if: matrix.os != 'macos-14' |
| 54 | + env: |
| 55 | + TARGET_ARCH: x86_64 |
| 56 | + run: deno task build |
| 57 | + |
| 58 | + - name: Build sqlite3 (macos-x86_64) |
| 59 | + if: matrix.os == 'macos-14' |
| 60 | + env: |
| 61 | + TARGET_ARCH: x86_64 |
| 62 | + CC: clang -arch x86_64 |
| 63 | + run: deno task build |
| 64 | + |
| 65 | + - name: Build sqlite3 (macos-aarch64) |
| 66 | + if: matrix.os == 'macos-14' |
| 67 | + env: |
| 68 | + TARGET_ARCH: aarch64 |
| 69 | + CC: clang -arch arm64 |
| 70 | + run: deno task build |
| 71 | + |
| 72 | + - name: Run Tests |
| 73 | + env: |
| 74 | + DENO_SQLITE_LOCAL: 1 |
| 75 | + run: deno task test |
| 76 | + |
| 77 | + - name: Release |
| 78 | + if: ${{ github.ref == 'refs/heads/main' }} |
| 79 | + uses: softprops/action-gh-release@master |
| 80 | + env: |
| 81 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 82 | + with: |
| 83 | + tag_name: "Release Draft" |
| 84 | + draft: true |
| 85 | + files: | |
| 86 | + build/libsqlite3.so |
| 87 | + build/libsqlite3_aarch64.so |
| 88 | + build/libsqlite3.dylib |
| 89 | + build/libsqlite3_aarch64.dylib |
| 90 | + build/sqlite3.dll |
0 commit comments