Skip to content

Commit e78cd7d

Browse files
committed
test Julia
1 parent d7aa276 commit e78cd7d

File tree

3 files changed

+103
-91
lines changed

3 files changed

+103
-91
lines changed

.github/julia/generate_binaries.jl

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,39 @@
22
haskey(ENV, "HIGHS_RELEASE") || error("The environment variable HIGHS_RELEASE is not defined.")
33
version = VersionNumber(ENV["HIGHS_RELEASE"])
44
version2 = ENV["HIGHS_RELEASE"]
5-
package = "HIGHS"
5+
package = "HiGHS"
66

77
platforms = [
8-
("aarch64-apple-darwin", "lib", "dylib"),
9-
("aarch64-linux-gnu-cxx11", "lib", "so" ),
10-
("aarch64-linux-musl-cxx11", "lib", "so" ),
11-
("aarch64-unknown-freebsd", "lib", "so" ),
12-
("armv6l-linux-gnueabihf-cxx11", "lib", "so" ),
13-
("armv6l-linux-musleabihf-cxx11", "lib", "so" ),
14-
("armv7l-linux-gnueabihf-cxx11", "lib", "so" ),
15-
("armv7l-linux-musleabihf-cxx11", "lib", "so" ),
16-
("i686-linux-gnu-cxx11", "lib", "so" ),
17-
("i686-linux-musl-cxx11", "lib", "so" ),
18-
("i686-w64-mingw32", "bin", "dll" ),
19-
("x86_64-apple-darwin", "lib", "dylib"),
20-
("x86_64-linux-gnu-cxx11", "lib", "so" ),
21-
("x86_64-linux-musl-cxx11", "lib", "so" ),
22-
("x86_64-unknown-freebsd", "lib", "so" ),
23-
("x86_64-w64-mingw32", "bin", "dll" )
8+
("aarch64-apple-darwin-cxx11" , "lib", "dylib"),
9+
("aarch64-linux-gnu-cxx11" , "lib", "so" ),
10+
# ("aarch64-linux-musl-cxx11" , "lib", "so" ),
11+
# ("powerpc64le-linux-gnu-cxx11" , "lib", "so" ),
12+
("x86_64-apple-darwin-cxx11" , "lib", "dylib"),
13+
("x86_64-linux-gnu-cxx11" , "lib", "so" ),
14+
# ("x86_64-linux-musl-cxx11" , "lib", "so" ),
15+
# ("x86_64-unknown-freebsd-cxx11", "lib", "so" ),
16+
("x86_64-w64-mingw32-cxx11" , "bin", "dll" ),
2417
]
2518

19+
# platforms = [
20+
# ("aarch64-apple-darwin", "lib", "dylib"),
21+
# ("aarch64-linux-gnu-cxx11", "lib", "so" ),
22+
# ("aarch64-linux-musl-cxx11", "lib", "so" ),
23+
# ("aarch64-unknown-freebsd", "lib", "so" ),
24+
# ("armv6l-linux-gnueabihf-cxx11", "lib", "so" ),
25+
# ("armv6l-linux-musleabihf-cxx11", "lib", "so" ),
26+
# ("armv7l-linux-gnueabihf-cxx11", "lib", "so" ),
27+
# ("armv7l-linux-musleabihf-cxx11", "lib", "so" ),
28+
# ("i686-linux-gnu-cxx11", "lib", "so" ),
29+
# ("i686-linux-musl-cxx11", "lib", "so" ),
30+
# ("i686-w64-mingw32", "bin", "dll" ),
31+
# ("x86_64-apple-darwin", "lib", "dylib"),
32+
# ("x86_64-linux-gnu-cxx11", "lib", "so" ),
33+
# ("x86_64-linux-musl-cxx11", "lib", "so" ),
34+
# ("x86_64-unknown-freebsd", "lib", "so" ),
35+
# ("x86_64-w64-mingw32", "bin", "dll" )
36+
# ]
37+
2638
for (platform, libdir, ext) in platforms
2739

2840
tarball_name = "$package.v$version.$platform.tar.gz"

.github/workflows/release-archive-artifact.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo ""
2626
ls ${{runner.workspace}}/HiGHS
2727
28-
# ls
28+
# ls
2929
# echo $GITHUB_WORKSPACE
3030

3131
- name: Generate archive artifact
@@ -34,7 +34,7 @@ jobs:
3434
cd ${{runner.workspace}}
3535
pwd
3636
tar -czvf source-archive.tar.gz HiGHS
37-
37+
3838
# --exclude='./archive'
3939

4040
- name: unzip archive

.github/workflows/release.yml

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
version: "1.7"
5656
arch: x64
5757

58-
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, UNO_RELEASE, UNO_COMMIT
58+
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, HIGHS_RELEASE, HIGHS_COMMIT
5959
shell: bash
6060
run: |
6161
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
@@ -74,14 +74,14 @@ jobs:
7474
- name: Upload artifact
7575
uses: actions/upload-artifact@v4
7676
with:
77-
name: Uno_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz
78-
path: ./Uno_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz
77+
name: HiGHS_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz
78+
path: ./HiGHS_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz
7979

8080
build-windows-x64:
8181
name: HiGHS -- Windows (x86_64) -- Release ${{ github.ref_name }}
8282
runs-on: ubuntu-latest
8383
steps:
84-
- name: Checkout Uno
84+
- name: Checkout HiGHS
8585
uses: actions/checkout@v4
8686

8787
- name: Install Julia
@@ -90,7 +90,7 @@ jobs:
9090
version: "1.7"
9191
arch: x64
9292

93-
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, UNO_RELEASE, UNO_COMMIT
93+
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, HIGHS_RELEASE, HIGHS_COMMIT
9494
shell: bash
9595
run: |
9696
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
@@ -108,14 +108,14 @@ jobs:
108108
- name: Upload artifact
109109
uses: actions/upload-artifact@v4
110110
with:
111-
name: Uno_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip
112-
path: ./Uno_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip
111+
name: HiGHS_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip
112+
path: ./HiGHS_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip
113113

114114
build-mac-x64:
115115
name: HiGHS -- macOS (x86_64) -- Release ${{ github.ref_name }}
116116
runs-on: ubuntu-latest
117117
steps:
118-
- name: Checkout Uno
118+
- name: Checkout HiGHS
119119
uses: actions/checkout@v4
120120

121121
- name: Install Julia
@@ -124,7 +124,7 @@ jobs:
124124
version: "1.7"
125125
arch: x64
126126

127-
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, UNO_RELEASE, UNO_COMMIT
127+
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, HIGHS_RELEASE, HIGHS_COMMIT
128128
shell: bash
129129
run: |
130130
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
@@ -143,14 +143,14 @@ jobs:
143143
- name: Upload artifact
144144
uses: actions/upload-artifact@v4
145145
with:
146-
name: Uno_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz
147-
path: ./Uno_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz
146+
name: HiGHS_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz
147+
path: ./HiGHS_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz
148148

149149
build-mac-aarch64:
150150
name: HiGHS -- macOS (aarch64) -- Release ${{ github.ref_name }}
151151
runs-on: ubuntu-latest
152152
steps:
153-
- name: Checkout Uno
153+
- name: Checkout HiGHS
154154
uses: actions/checkout@v4
155155

156156
- name: Install Julia
@@ -159,7 +159,7 @@ jobs:
159159
version: "1.7"
160160
arch: x64
161161

162-
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, UNO_RELEASE, UNO_COMMIT
162+
- name: Set the environment variables BINARYBUILDER_AUTOMATIC_APPLE, HIGHS_RELEASE, HIGHS_COMMIT
163163
shell: bash
164164
run: |
165165
echo "BINARYBUILDER_AUTOMATIC_APPLE=true" >> $GITHUB_ENV
@@ -178,62 +178,62 @@ jobs:
178178
- name: Upload artifact
179179
uses: actions/upload-artifact@v4
180180
with:
181-
name: Uno_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz
182-
path: ./Uno_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz
183-
184-
release:
185-
name: Create Release and Upload Binaries
186-
needs: [build-windows-x64, build-linux-x64, build-linux-aarch64, build-mac-x64, build-mac-aarch64]
187-
runs-on: ubuntu-latest
188-
steps:
189-
- name: Checkout Uno
190-
uses: actions/checkout@v4
191-
192-
- name: Download artifacts
193-
uses: actions/download-artifact@v4
194-
with:
195-
path: .
196-
197-
- name: Create GitHub Release
198-
run: |
199-
gh release create ${{ github.ref_name }} \
200-
--title "${{ github.ref_name }}" \
201-
--notes "" \
202-
--verify-tag
203-
env:
204-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
205-
206-
- name: Upload Linux (x86_64) artifact
207-
run: |
208-
gh release upload ${{ github.ref_name }} \
209-
Uno_binaries.${{ github.ref_name }}.x86_64-linux-gnu-cxx11.tar.gz/Uno_binaries.${{ github.ref_name }}.x86_64-linux-gnu-cxx11.tar.gz#Uno.${{ github.ref_name }}.linux.x86_64.tar.gz
210-
env:
211-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212-
213-
- name: Upload Linux (aarch64) artifact
214-
run: |
215-
gh release upload ${{ github.ref_name }} \
216-
Uno_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz/Uno_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz#Uno.${{ github.ref_name }}.linux.aarch64.tar.gz
217-
env:
218-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219-
220-
- name: Upload Mac (x86_64) artifact
221-
run: |
222-
gh release upload ${{ github.ref_name }} \
223-
Uno_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz/Uno_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz#Uno.${{ github.ref_name }}.mac.x86_64.tar.gz
224-
env:
225-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226-
227-
- name: Upload Mac (aarch64) artifact
228-
run: |
229-
gh release upload ${{ github.ref_name }} \
230-
Uno_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz/Uno_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz#Uno.${{ github.ref_name }}.mac.aarch64.tar.gz
231-
env:
232-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
233-
234-
- name: Upload Windows (x86_64) artifact
235-
run: |
236-
gh release upload ${{ github.ref_name }} \
237-
Uno_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip/Uno_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip#Uno.${{ github.ref_name }}.windows.x86_64.zip
238-
env:
239-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
181+
name: HiGHS_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz
182+
path: ./HiGHS_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz
183+
184+
# release:
185+
# name: Create Release and Upload Binaries
186+
# needs: [build-windows-x64, build-linux-x64, build-linux-aarch64, build-mac-x64, build-mac-aarch64]
187+
# runs-on: ubuntu-latest
188+
# steps:
189+
# - name: Checkout HiGHS
190+
# uses: actions/checkout@v4
191+
192+
# - name: Download artifacts
193+
# uses: actions/download-artifact@v4
194+
# with:
195+
# path: .
196+
197+
# - name: Create GitHub Release
198+
# run: |
199+
# gh release create ${{ github.ref_name }} \
200+
# --title "${{ github.ref_name }}" \
201+
# --notes "" \
202+
# --verify-tag
203+
# env:
204+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
205+
206+
# - name: Upload Linux (x86_64) artifact
207+
# run: |
208+
# gh release upload ${{ github.ref_name }} \
209+
# HiGHS_binaries.${{ github.ref_name }}.x86_64-linux-gnu-cxx11.tar.gz/HiGHS_binaries.${{ github.ref_name }}.x86_64-linux-gnu-cxx11.tar.gz#HiGHS.${{ github.ref_name }}.linux.x86_64.tar.gz
210+
# env:
211+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212+
213+
# - name: Upload Linux (aarch64) artifact
214+
# run: |
215+
# gh release upload ${{ github.ref_name }} \
216+
# HiGHS_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz/HiGHS_binaries.${{ github.ref_name }}.aarch64-linux-gnu-cxx11.tar.gz#HiGHS.${{ github.ref_name }}.linux.aarch64.tar.gz
217+
# env:
218+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219+
220+
# - name: Upload Mac (x86_64) artifact
221+
# run: |
222+
# gh release upload ${{ github.ref_name }} \
223+
# HiGHS_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz/HiGHS_binaries.${{ github.ref_name }}.x86_64-apple-darwin-cxx11.tar.gz#HiGHS.${{ github.ref_name }}.mac.x86_64.tar.gz
224+
# env:
225+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
226+
227+
# - name: Upload Mac (aarch64) artifact
228+
# run: |
229+
# gh release upload ${{ github.ref_name }} \
230+
# HiGHS_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz/HiGHS_binaries.${{ github.ref_name }}.aarch64-apple-darwin-cxx11.tar.gz#HiGHS.${{ github.ref_name }}.mac.aarch64.tar.gz
231+
# env:
232+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
233+
234+
# - name: Upload Windows (x86_64) artifact
235+
# run: |
236+
# gh release upload ${{ github.ref_name }} \
237+
# HiGHS_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip/HiGHS_binaries.${{ github.ref_name }}.x86_64-w64-mingw32-cxx11.zip#HiGHS.${{ github.ref_name }}.windows.x86_64.zip
238+
# env:
239+
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)