-
Notifications
You must be signed in to change notification settings - Fork 2
108 lines (99 loc) · 2.78 KB
/
ci.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Build
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches: [ main ]
jobs:
# build-linux-x64:
# runs-on: ubuntu-latest
# environment: Maven Central
# steps:
# - name: Checkout Project
# uses: actions/checkout@v4
#
# - name: Setup Java
# uses: actions/setup-java@v4
# with:
# distribution: corretto
# java-version: 17
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4
#
# - name: Setup Cache
# uses: actions/cache@v4
# with:
# path: |
# /home/runner/.konan
# sqlx4k-mysql/rust_lib/target
# sqlx4k-postgres/rust_lib/target
# sqlx4k-sqlite/rust_lib/target
# key: rust-lib-cache-linux
#
# - name: Gradle Build
# run: ./scripts/build-linux-x64.sh
# build-linux-arm64:
# runs-on: ubuntu-latest
# environment: Maven Central
# steps:
# - name: Checkout Project
# uses: actions/checkout@v4
#
# - name: Setup Java
# uses: actions/setup-java@v4
# with:
# distribution: corretto
# java-version: 17
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4
#
# - name: Setup Cache
# uses: actions/cache@v4
# with:
# path: |
# /home/runner/.konan
# sqlx4k-mysql/rust_lib/target
# sqlx4k-postgres/rust_lib/target
# sqlx4k-sqlite/rust_lib/target
# key: rust-lib-cache-linux
#
# - name: Gradle Build
# run: ./scripts/build-linux-arm64.sh
build-apple:
runs-on: macos-14
environment: Maven Central
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Setup Rust & cargo
run: rustup target add aarch64-apple-ios aarch64-apple-darwin x86_64-apple-darwin
- name: Setup Cache
uses: actions/cache@v4
with:
path: |
/home/runner/.konan
sqlx4k-mysql/rust_lib/target
sqlx4k-postgres/rust_lib/target
sqlx4k-sqlite/rust_lib/target
key: rust-lib-cache-apple
- name: Gradle Build
run: ./gradlew clean build
# run: ./scripts/build-apple.sh
# - name: Gradle Publish
# run: ./gradlew publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
# MAVEN_SIGNING_KEY: ${{ secrets.MAVEN_SIGNING_KEY }}
# MAVEN_SIGNING_PASSWORD: ${{ secrets.MAVEN_SIGNING_PASSWORD }}