fix: fix several string reinterpret issues #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ "trunk" ] | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 22 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '22' | |
| distribution: 'temurin' | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Set up Zig | |
| uses: goto-bus-stop/setup-zig@v2 | |
| with: | |
| version: '0.16.0' | |
| - name: Set up macOS Cross Compiler | |
| uses: Timmmm/setup-osxcross@v2 | |
| with: | |
| osx-version: "26.1" | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y bluez libdbus-1-dev gcc-mingw-w64-x86-64-win32 | |
| cargo install --locked cargo-xwin cargo-zigbuild | |
| rustup target add x86_64-unknown-linux-gnu | |
| rustup target add aarch64-apple-darwin | |
| rustup target add x86_64-apple-darwin | |
| rustup target add x86_64-pc-windows-gnu | |
| - name: Install jextract | |
| shell: bash | |
| run: | | |
| mkdir -p $HOME/.jextract | |
| curl -L "https://download.java.net/java/early_access/jextract/22/6/openjdk-22-jextract+6-47_linux-x64_bin.tar.gz" -o jextract_bundle.tar.gz | |
| tar -xzf jextract_bundle.tar.gz -C $HOME/.jextract --strip-components=1 | |
| echo "$HOME/.jextract/bin" >> $GITHUB_PATH | |
| - name: Run Build | |
| run: ./gradlew build -Pci=true -x test --no-daemon | |
| - name: Upload Jar Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: btleplug4j | |
| path: build/libs/*.jar | |
| # test: | |
| # name: Test | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # | |
| # - name: Set up JDK 22 | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # java-version: '22' | |
| # distribution: 'temurin' | |
| # | |
| # - name: Install Dependencies | |
| # run: | | |
| # sudo apt-get update | |
| # sudo apt-get install -y bluez libdbus-1-dev | |
| # cargo install --locked cargo-zigbuild | |
| # | |
| # - name: Install jextract | |
| # run: | | |
| # wget https://download.java.net/java/early_access/jextract/22/6/openjdk-22-jextract+6-47_linux-x64_bin.tar.gz | |
| # tar -xvf openjdk-22-jextract+6-47_linux-x64_bin.tar.gz | |
| # | |
| # echo "$GITHUB_WORKSPACE/jextract-22/bin" >> $GITHUB_PATH | |
| # | |
| # - name: Run vHCI Integration Test | |
| # run: ./gradlew test -PrunTest=true |