-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (41 loc) · 1.23 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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
# runs-on: ubuntu-latest
runs-on: macos-14
environment: Maven Central
permissions:
contents: read
packages: write
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@v3
- name: Setup Rust & cargo
run: rustup target add aarch64-apple-darwin x86_64-apple-darwin aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu
- name: Cache rust build
uses: actions/cache@v4
with:
path: sqlx4k/rust_lib/target
key: rust_lib
- name: Gradle Build
run: ./gradlew build
# - 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 }}