Skip to content

Commit

Permalink
Update the files to cross-compile GALAHAD
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Feb 23, 2024
1 parent d04848c commit 1515f33
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
4 changes: 1 addition & 3 deletions .github/julia/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ meson setup builddir --cross-file=${MESON_TARGET_TOOLCHAIN%.*}_gcc.meson \
--prefix=$prefix \
-Dlibhwloc=$HWLOC \
-Dlibblas=openblas \
-Dliblapack=openblas \
-Dexamples=true \
-Dtests=true
-Dliblapack=openblas
meson compile -C builddir
meson install -C builddir
Expand Down
6 changes: 3 additions & 3 deletions .github/julia/generate_binaries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ for (platform, libdir, ext) in platforms

# Create a folder with the version number of the package
mkdir("$(package)_binaries.$version2")
for folder in ("include", "share", "modules", "lib", "bin", "examples", "tests")
for folder in ("include", "share", "modules", "lib", "bin")
cp(folder, "$(package)_binaries.$version2/$folder")
end

cd("$(package)_binaries.$version2")
if ext == "dll"
run(`zip -r --symlinks ../../../$(package)_binaries.$version2.$platform.zip include share modules lib bin examples tests`)
run(`zip -r --symlinks ../../../$(package)_binaries.$version2.$platform.zip include share modules lib bin`)
else
run(`tar -czf ../../../$(package)_binaries.$version2.$platform.tar.gz include share modules lib bin examples tests`)
run(`tar -czf ../../../$(package)_binaries.$version2.$platform.tar.gz include share modules lib bin`)
end
cd("../../..")

Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,32 @@ jobs:
with:
version: 1
arch: x64
- name: Install BinaryBuilder.jl
run: julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, GALAHAD_RELEASE, GALAHAD_COMMIT
shell: bash
run: |
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
echo "GALAHAD_RELEASE=${{ github.ref_name }}" >> $GITHUB_ENV
echo "GALAHAD_COMMIT=${{ github.sha }}" >> $GITHUB_ENV
- name: Cross-compilation of GALAHAD -- x86_64-linux-gnu-libgfortran5
run: julia --color=yes .github/julia/build_tarballs.jl x86_64-linux-gnu-libgfortran5 --verbose
run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs.jl x86_64-linux-gnu-libgfortran5 --verbose
rm -r ~/.julia
- name: Cross-compilation of GALAHAD -- x86_64-w64-mingw32-libgfortran5
run: julia --color=yes .github/julia/build_tarballs.jl x86_64-w64-mingw32-libgfortran5 --verbose
run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs.jl x86_64-w64-mingw32-libgfortran5 --verbose
rm -r ~/.julia
- name: Cross-compilation of GALAHAD -- x86_64-apple-darwin-libgfortran5
run: julia --color=yes .github/julia/build_tarballs.jl x86_64-apple-darwin-libgfortran5 --verbose
run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs.jl x86_64-apple-darwin-libgfortran5 --verbose
rm -r ~/.julia
- name: Cross-compilation of GALAHAD -- aarch64-apple-darwin-libgfortran5
run: julia --color=yes .github/julia/build_tarballs.jl aarch64-apple-darwin-libgfortran5 --verbose
run: |
julia --color=yes -e 'using Pkg; Pkg.add("BinaryBuilder")'
julia --color=yes .github/julia/build_tarballs.jl aarch64-apple-darwin-libgfortran5 --verbose
rm -r ~/.julia
- name: Generate the binaries
run: julia --color=yes .github/julia/generate_binaries.jl
- name: Create a new release
Expand Down

0 comments on commit 1515f33

Please sign in to comment.