Skip to content

Commit 16582c2

Browse files
authored
Merge pull request #1 from rust-diplomat/move-panama-backend
move-panama-backend
2 parents 3e3ee3d + ae5427d commit 16582c2

File tree

157 files changed

+39232
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+39232
-11
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
name: Check Diplomat Compatibility
3+
4+
on:
5+
schedule:
6+
- cron: "0 0 * * 5"
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
check-latest-diplomat:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Add latest dipomat
18+
run: cargo add -p diplomat-java --git https://github.com/rust-diplomat/diplomat.git --branch main diplomat-tool diplomat-runtime diplomat_core
19+
20+
- name: Check build
21+
run: cargo build

.github/workflows/ci.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Diplomat Java CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Check rustfmt
19+
run: cargo fmt --all -- --check
20+
21+
- name: Check clippy
22+
run: cargo clippy --all-targets --all-features -- -D warnings
23+
24+
build-test:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Build
30+
run: cargo build --verbose
31+
32+
- name: Run tests
33+
run: cargo test --verbose
34+
35+
msrv:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Install MSRV Rust
41+
run: rustup install 1.71 --profile minimal
42+
43+
- name: Check
44+
run: cargo +1.71 check -p diplomat-java -p jextrsact -p feature-tests
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v4
50+
- name: Install cargo-make
51+
uses: taiki-e/install-action@cargo-make
52+
- name: Set up JDK 22 for x64
53+
uses: actions/setup-java@v4
54+
with:
55+
java-version: '22'
56+
distribution: 'temurin'
57+
architecture: x64
58+
cache: maven
59+
- name: Test Java
60+
run: cargo make test-feature
61+
62+
test-gen:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- name: Install cargo-make
67+
uses: taiki-e/install-action@cargo-make
68+
- name: Install curl
69+
run: sudo apt-get update && sudo apt-get install -y curl
70+
- name: Set up JDK 22 for x64
71+
uses: actions/setup-java@v4
72+
with:
73+
java-version: '22'
74+
distribution: 'temurin'
75+
architecture: x64
76+
cache: maven
77+
- name: get jextract
78+
run: curl -o /opt/jextract.tgz https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_linux-x64_bin.tar.gz
79+
- name: config jextract
80+
run: tar -xzf /opt/jextract.tgz -C /opt/
81+
- name: Add jextract to path
82+
run: echo "/opt/jextract-22/bin" >> $GITHUB_PATH
83+
- name: Run generated java
84+
run: cargo make gen-feature
85+

.gitignore

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
# Generated by Cargo
22
# will have compiled files and executables
3-
debug/
43
target/
54

65
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
76
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
8-
Cargo.lock
97

108
# These are backup files generated by rustfmt
119
**/*.rs.bk
1210

13-
# MSVC Windows builds of rustc generate these, which store debugging information
14-
*.pdb
11+
# VIM swap files
12+
*.swp
1513

16-
# RustRover
17-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
18-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
19-
# and can be added to the global gitignore or merged into this file. For a more nuclear
20-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
21-
#.idea/
14+
# Compiled header files
15+
*.gch
16+
17+
# VS Code configuration
18+
.vscode/

0 commit comments

Comments
 (0)