Skip to content

Commit 7dd06ba

Browse files
committed
build swig
1 parent 325b8f5 commit 7dd06ba

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
include:
3030
- platform: darwin
3131
os: macos-14
32-
brew-packages: https://raw.githubusercontent.com/Homebrew/homebrew-core/d68a6bc0fa0fe84d4ab40a7df228a2b9bc48bc37/Formula/s/swig.rb
32+
brew-packages: swig
3333
cmd: ./run.me
3434
- platform: darwin
3535
arch: x86-64
3636
# https://github.com/openjdk/jdk/commit/5b1baa3d10d9ef3f07f133ece8a5f1d40311c74d#diff-6078ab1e47c6bb312b7f41e7539b4849189260c38f9b359c205a5aa0f633533dR278
3737
cmd: CC='cc -target x86_64-apple-darwin20.1.0' CXX='c++ -std=c++11 -target x86_64-apple-darwin20.1.0' ./build.sh && mv supranational/blst/Mac/{aarch64,x86_64}
3838
- platform: linux
39-
os: ubuntu-22.04
39+
os: ubuntu-24.04
4040
extra-packages: gcc-9 g++-9
4141
cmd: CC=gcc-9 CXX=g++-9 ./build.sh -D__BLST_PORTABLE__
4242
- platform: linux
@@ -56,10 +56,14 @@ jobs:
5656
cl /nologo /MT /LD /O2 /W3 /wd4267 /EHsc /D_CRT_SECURE_NO_WARNINGS /I "$env:JAVA_HOME\include" /I ..\ /I "$env:JAVA_HOME\include\win32" blst_wrap.cpp blst.lib /link /OUT:supranational/blst/Windows/amd64/blst.dll
5757
5858
steps:
59+
- if: matrix.platform == 'darwin'
60+
run: echo "SDKROOT=$(xcrun --sdk macosx --show-sdk-path)" >> $GITHUB_ENV
61+
- if: matrix.brew-packages != ''
62+
run: brew install ${{ matrix.brew-packages }}
63+
- run: swig -version
5964
- uses: actions/checkout@v6
6065
with:
6166
repository: supranational/blst
62-
ref: v${{ inputs.version }}
6367
- uses: actions/setup-java@v5
6468
with:
6569
distribution: 'temurin'
@@ -68,8 +72,6 @@ jobs:
6872
run: |
6973
sudo apt-get update
7074
sudo apt-get install -y ${{ matrix.extra-packages }}
71-
- if: matrix.brew-packages != ''
72-
run: brew install ${{ matrix.brew-packages }}
7375
- if: matrix.os == 'windows-2022'
7476
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
7577
- name: Build native image

0 commit comments

Comments
 (0)