Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison authored and jfowkes committed May 8, 2024
1 parent 187cc21 commit 838d2bc
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,36 @@ jobs:
- name: Checkout SPRAL
uses: actions/checkout@v4
- name: Install Julia
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
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, SPRAL_RELEASE, SPRAL_COMMIT
shell: bash
run: |
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
echo "SPRAL_RELEASE=${{ github.ref_name }}" >> $GITHUB_ENV
echo "SPRAL_COMMIT=${{ github.sha }}" >> $GITHUB_ENV
- name: Cross-compilation of SPRAL -- 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 SPRAL -- 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 SPRAL -- 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 SPRAL -- 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 838d2bc

Please sign in to comment.