Skip to content

Commit

Permalink
Add Linux aarch64 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan authored Dec 6, 2024
1 parent d60dfff commit 2cf33af
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/jars.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: Make JARs with CMake
on:
workflow_dispatch:
inputs:
c_blosc_version:
description: Semantic version of c-blosc to package.
type: string
default: "v1.21.6"
required: true
workflow_call:
inputs:
c_blosc_version:
description: Semantic version of c-blosc to package.
type: string
default: "1.21.5"
default: "v1.21.6"
required: true

jobs:
Expand All @@ -17,6 +24,7 @@ jobs:
matrix:
name: [
linux-x86-64,
linux-aarch64,
win32-x86-64,
darwin-x86-64,
darwin-aarch64
Expand All @@ -27,14 +35,21 @@ jobs:
compiler: gcc
artifact: blosc/libblosc.so

- name: linux-aarch64
os: ubuntu-latest
compiler: aarch64-linux-gnu-gcc
install: gcc-aarch64-linux-gnu
cmake-args: -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCMAKE_ASM_COMPILER=aarch64-linux-gnu-gcc -DDEACTIVATE_SSE2=ON # https://github.com/Blosc/c-blosc/issues/236
artifact: blosc/libblosc.so

- name: win32-x86-64
os: windows-latest
compiler: cl
cmake-args: -A x64
artifact: blosc/Release/blosc.dll

- name: darwin-x86-64
os: macOS-12
os: macOS-13
compiler: gcc
artifact: blosc/libblosc.dylib

Expand All @@ -46,7 +61,12 @@ jobs:
- uses: actions/checkout@v4
with:
repository: Blosc/c-blosc
ref: v${{ inputs.c_blosc_version }}
ref: ${{ inputs.c_blosc_version }}

- name: Install compiler
if: matrix.name == 'linux-aarch64'
run: |
sudo apt-get update && sudo apt-get install ${{ matrix.install }}
- name: Generate project files
run: |
Expand Down Expand Up @@ -95,8 +115,9 @@ jobs:
jar cvf blosc-natives-darwin-aarch64.jar darwin-aarch64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives-darwin-x86-64.jar darwin-x86-64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives-linux-x86-64.jar linux-x86-64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives-linux-aarch64.jar linux-aarch64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives-win32-x86-64.jar win32-x86-64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives.jar linux-x86-64 darwin-x86-64 darwin-aarch64 win32-x86-64 c-blosc/LICENSE.txt c-blosc/LICENSES
jar cvf blosc-natives.jar linux-x86-64 linux-aarch64 darwin-x86-64 darwin-aarch64 win32-x86-64 c-blosc/LICENSE.txt c-blosc/LICENSES
- name: Upload artifacts
if: always()
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
c_blosc_version:
description: Semantic version of c-blosc to package.
type: string
default: "1.21.5"
default: "v1.21.6"
required: true

jobs:
Expand Down Expand Up @@ -37,6 +37,7 @@ jobs:
blosc-natives-darwin-aarch64.jar \
blosc-natives-darwin-x86-64.jar \
blosc-natives-linux-x86-64.jar \
blosc-natives-linux-aarch64.jar \
blosc-natives-win32-x86-64.jar \
blosc-natives.jar
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
c_blosc_version:
description: Semantic version of c-blosc to package.
type: string
default: "1.21.5"
default: "v1.21.6"
required: true


Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/

*.sw?
.gradle
c-blosc/
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ publishing {
artifact (file("blosc-natives-linux-x86-64.jar")) {
classifier "linux-x86_64"
}
artifact (file("blosc-natives-linux-aarch64.jar")) {
classifier "linux-aarch64"
}
pom {
licenses {
license {
Expand Down

0 comments on commit 2cf33af

Please sign in to comment.