Skip to content

Commit 310241c

Browse files
Update CI for outdated actions, build issues, add macos-14, remove mingw32 [master] (#137)
* Update Linux CI for outdated actions, add macos-14 and always upload artifact * Update windows-ci for outdated actions, remove mingw32 Always upload artifact, without MSVS steps --------- Co-authored-by: Ted Ralphs <[email protected]>
1 parent 5a9c40b commit 310241c

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

.github/workflows/linux-ci.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,28 @@ jobs:
2323
flags: [ADD_CXXFLAGS=-fvisibility=hidden]
2424
download_requirements: [sudo apt install -y -qq gfortran liblapack-dev libmetis-dev libnauty2-dev]
2525
include:
26-
- os: macos-12
26+
- os: macos-13
2727
build_static: false
28-
flags: CC=clang CXX=clang++ OSX=12
28+
flags: CC=clang CXX=clang++ OSX=13
2929
download_requirements: brew install metis bash
30-
- os: macos-12
30+
- os: macos-13
3131
build_static: false
32-
flags: CC=gcc-11 CXX=g++-11 OSX=12
32+
flags: CC=gcc-13 CXX=g++-13 OSX=13 ADD_CXXFLAGS=-Wl,-ld_classic
3333
download_requirements: brew install metis bash
34-
- os: macos-12
34+
- os: macos-14
35+
arch: arm64
3536
build_static: false
36-
flags: CC=gcc-12 CXX=g++-12 OSX=12
37+
flags: CC=gcc-13 CXX=g++-13 OSX=14 ADD_CXXFLAGS=-Wl,-ld_classic
3738
download_requirements: brew install metis bash
3839
steps:
3940
- name: Checkout source
40-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
4142
with:
4243
path: ${{ github.event.repository.name }}
4344
- name: Install required packages from package manager
4445
run: ${{ matrix.download_requirements }}
4546
- name: Checkout coinbrew
46-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4748
with:
4849
repository: coin-or/coinbrew
4950
path: coinbrew
@@ -70,11 +71,11 @@ jobs:
7071
cp ${{ github.event.repository.name }}/LICENSE dist/
7172
tar -czvf release.tar.gz -C dist .
7273
- name: Checkout package name generation script
73-
uses: actions/checkout@v3
74+
uses: actions/checkout@v4
7475
with:
7576
repository: coin-or-tools/platform-analysis-tools
7677
path: tools
77-
ref: 0.0.1
78+
ref: 0.0.2
7879
- name: Retrieve platform info
7980
run: |
8081
python3 -m venv venv
@@ -84,10 +85,9 @@ jobs:
8485
platform_str=`python3 tools/hsf_get_platform.py -b $buildtype`
8586
echo "platform_string=${platform_str}" >> $GITHUB_ENV
8687
- name: Upload Artifact
87-
if: ${{ github.event_name == 'pull_request'}}
88-
uses: actions/upload-artifact@v3
88+
uses: actions/upload-artifact@v4
8989
with:
90-
name: ${{ github.event.repository.name }}-${{ github.head_ref }}-${{ env.platform_string }}.tar.gz
90+
name: ${{ github.event.repository.name }}-${{ env.platform_string }}.tar.gz
9191
path: release.tar.gz
9292
if-no-files-found: error
9393
- name: Upload package to release

.github/workflows/windows-ci.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,27 @@ jobs:
2222
include: [
2323
{ os: windows-2019, arch: x86_64, msystem: mingw64, debug: true, suffix: "-dbg" },
2424
{ os: windows-2019, arch: x86_64, msystem: mingw64, debug: false, suffix: "" },
25-
{ os: windows-2019, arch: i686, msystem: mingw32, debug: true, suffix: "-dbg" },
26-
{ os: windows-2019, arch: i686, msystem: mingw32, debug: false, suffix: "" },
2725
{ os: windows-2019, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" },
2826
{ os: windows-2022, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" },
2927
]
3028
steps:
3129
- name: Checkout source
32-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3331
with:
3432
path: ${{ github.event.repository.name }}
3533
- name: Checkout coinbrew
36-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3735
with:
3836
repository: coin-or/coinbrew
3937
path: coinbrew
4038
- name: Set up msvc
41-
uses: ilammy/msvc-dev-cmd@v1
4239
if: ${{ matrix.arch == 'msvc' }}
40+
uses: ilammy/msvc-dev-cmd@v1
4341
- name: Set correct host flag and install requirements
42+
if: ${{ matrix.arch != 'msvc' }}
4443
run: |
4544
echo "host_flag=--host=${{ matrix.arch }}-w64-mingw32" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
4645
C:\msys64\usr\bin\pacman -S mingw-w64-${{ matrix.arch }}-lapack mingw-w64-${{ matrix.arch }}-winpthreads-git mingw-w64-${{ matrix.arch }}-readline mingw-w64-${{ matrix.arch }}-suitesparse mingw-w64-${{ matrix.arch }}-metis --noconfirm
47-
if: ${{ matrix.arch != 'msvc' }}
4846
- name: Set up msys with ${{ matrix.msystem }}
4947
uses: msys2/setup-msys2@v2
5048
with:
@@ -71,7 +69,7 @@ jobs:
7169
cp ${{ github.event.repository.name }}/LICENSE dist/
7270
shell: msys2 {0}
7371
- name: Upload failed build directory
74-
uses: actions/upload-artifact@v3
72+
uses: actions/upload-artifact@v4
7573
if: failure()
7674
with:
7775
name: ${{ matrix.os}}-{{ matrix.arch }}-debug=${{ matrix.debug }}-failedbuild
@@ -88,10 +86,9 @@ jobs:
8886
shell: msys2 {0}
8987
if: ${{ matrix.arch != 'msvc' }}
9088
- name: Upload artifact
91-
if: ${{ github.event_name == 'pull_request'}}
92-
uses: actions/upload-artifact@v3
89+
uses: actions/upload-artifact@v4
9390
with:
94-
name: ${{ github.event.repository.name }}-${{ github.head_ref }}-${{ env.package_suffix }}
91+
name: ${{ github.event.repository.name }}-${{ env.package_suffix }}
9592
path: dist
9693
if-no-files-found: error
9794
- name: Zip up dist contents for release

0 commit comments

Comments
 (0)