Skip to content

Commit

Permalink
use xpack for linux too I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonwatson committed Jul 26, 2024
1 parent 61ed7ce commit 8b29028
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ task buildRustWindows(type: Exec) {
}

task buildRustLinux(type: Exec) {
environment 'PATH', System.getenv('PATH') + ":/home/jitpack/build/xpack-gcc-13.3.0-1-linux-x64/bin"
commandLine System.properties['user.home'] + '/.cargo/bin/cargo', 'build', '--target', 'x86_64-unknown-linux-gnu'
}

Expand Down
6 changes: 6 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
jdk:
- openjdk17
before_install:
# Java
- sdk install java 17.0.1-open
- sdk use java 17.0.1-open
# GCC
- wget https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-1/xpack-gcc-13.3.0-1-linux-x64.tar.gz
- tar xvf xpack-gcc-13.3.0-1-linux-x64.tar.gz
# MinGW
- wget https://github.com/xpack-dev-tools/mingw-w64-gcc-xpack/releases/download/v13.3.0-1/xpack-mingw-w64-gcc-13.3.0-1-linux-x64.tar.gz
- tar xvf xpack-mingw-w64-gcc-13.3.0-1-linux-x64.tar.gz
# Rust
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
- $HOME/.cargo/bin/rustup target add x86_64-pc-windows-gnu

0 comments on commit 8b29028

Please sign in to comment.