Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move-panama-backend #1

Merged
merged 23 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
46cf993
move-panama-backend
jcrist1 Sep 20, 2024
c59647d
panama-backend - accept insta
jcrist1 Sep 20, 2024
225b9cb
move-panama-backend - update deps
jcrist1 Sep 20, 2024
b3a63e5
move-panama-backend - fix git dependencies
jcrist1 Sep 20, 2024
1bb4784
move-panama-backend - fix git deps
jcrist1 Sep 20, 2024
81cd96b
move-panama-backend - fix msrv check
jcrist1 Sep 20, 2024
73bccdc
panama-backend - add feature
jcrist1 Sep 20, 2024
0df2bca
move-panama-backend - cleanup filed and fix makefile
jcrist1 Sep 20, 2024
96442ea
move-panama-backend - more ci and make fixes
jcrist1 Sep 20, 2024
e4f492a
move-panama-backend - fix makefile
jcrist1 Sep 20, 2024
ff3e598
move-panama-backend - fix msrv check
jcrist1 Sep 20, 2024
2a98363
move-panama-backend - lock clap to 4.2 for msrv
jcrist1 Sep 20, 2024
9332c83
move-panama-backend - fix compile for older rust version?
jcrist1 Sep 20, 2024
93bed0d
move-panama-backend - ci for checking diplomat incompatibility
jcrist1 Sep 20, 2024
e85fce1
move-panama-backend - specify branch
jcrist1 Sep 20, 2024
43487f3
move-panama-backend - move scheduled task back to scheduled ci
jcrist1 Sep 20, 2024
6c4ea39
move-panama-backend - ci naming
jcrist1 Sep 20, 2024
f070589
move-panama-backend - delete extraneous files / add jextrsact readme
jcrist1 Sep 20, 2024
5f10e59
move-panama-backend - test cron
jcrist1 Sep 20, 2024
bc522e5
move-panama-backend - another try
jcrist1 Sep 20, 2024
96c2705
move-panam-backend - clean up
jcrist1 Sep 20, 2024
4d44b03
move-panama-backend - fix todo on git dep
jcrist1 Sep 20, 2024
ae5427d
move-panama-backend - fix the revision
jcrist1 Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/check-diplomat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

name: Check Diplomat Compatibility

on:
schedule:
- cron: "0 0 * * 5"

env:
CARGO_TERM_COLOR: always

jobs:
check-latest-diplomat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Add latest dipomat
run: cargo add -p diplomat-java --git https://github.com/rust-diplomat/diplomat.git --branch main diplomat-tool diplomat-runtime diplomat_core

- name: Check build
run: cargo build
85 changes: 85 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Diplomat Java CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check rustfmt
run: cargo fmt --all -- --check

- name: Check clippy
run: cargo clippy --all-targets --all-features -- -D warnings

build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install MSRV Rust
run: rustup install 1.71 --profile minimal

- name: Check
run: cargo +1.71 check -p diplomat-java -p jextrsact -p feature-tests

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-make
uses: taiki-e/install-action@cargo-make
- name: Set up JDK 22 for x64
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
architecture: x64
cache: maven
- name: Test Java
run: cargo make test-feature

test-gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cargo-make
uses: taiki-e/install-action@cargo-make
- name: Install curl
run: sudo apt-get update && sudo apt-get install -y curl
- name: Set up JDK 22 for x64
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'temurin'
architecture: x64
cache: maven
- name: get jextract
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
- name: config jextract
run: tar -xzf /opt/jextract.tgz -C /opt/
- name: Add jextract to path
run: echo "/opt/jextract-22/bin" >> $GITHUB_PATH
- name: Run generated java
run: cargo make gen-feature

17 changes: 7 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

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

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

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
# VIM swap files
*.swp

# RustRover
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# Compiled header files
*.gch

# VS Code configuration
.vscode/
Loading