Skip to content

Commit

Permalink
Musl build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Aug 12, 2024
1 parent 36f82f8 commit d64b51f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build-c-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,26 @@ jobs:
tar -xzf aarch64-linux-musl-cross.tgz
echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
- name: Install cross-compilation tools for x86_64-musl
- name: Install MUSL (x86 Linux) toolchains
if: matrix.settings.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
sudo apt-get install -y \
wget \
build-essential \
musl-tools
mkdir -p ${HOME}/musl_toolchains
cd ${HOME}/musl_toolchains
wget https://musl.cc/x86_64-linux-musl-cross.tgz
tar -xzf x86_64-linux-musl-cross.tgz
rm x86_64-linux-musl-cross.tgz
echo "${HOME}/musl_toolchains/x86_64-linux-musl-cross/bin" >> $GITHUB_PATH
x86_64-linux-musl-gcc --version
- name: Build Rust (GNU/Others)
if: ${{ !endsWith(matrix.settings.target, '-linux-musl') }}
Expand All @@ -74,6 +89,7 @@ jobs:
env:
RUSTFLAGS: "-D warnings -C target-feature=-crt-static"
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-musl-gcc
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER: x86_64-linux-musl-gcc
run: cargo build --target ${{ matrix.settings.target }} --release --workspace --exclude infisical-py

- name: Upload Artifact
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ run-name: Release Java SDK

on:
push:
tags:
- "*.*.*" # version, e.g. 1.0.0
# tags:
# - "*.*.*" # version, e.g. 1.0.0

jobs:
generate_schemas:
Expand Down Expand Up @@ -111,13 +111,13 @@ jobs:
echo "Listing files in languages/java/src/main/resources:"
ls -R languages/java/src/main/resources
- name: Publish Maven
working-directory: languages/java
run: |
./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }} # Last 8 characters of the full key ID
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}
# - name: Publish Maven
# working-directory: languages/java
# run: |
# ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
# env:
# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}
# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}
# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
# ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }} # Last 8 characters of the full key ID
# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }}

0 comments on commit d64b51f

Please sign in to comment.