diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 4e5aa1ed..5f22125d 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -29,21 +29,17 @@ jobs: download_requirements: brew install metis bash - os: macos-13 build_static: false - flags: CC=gcc-13 CXX=g++-13 OSX=13 - download_requirements: brew install metis bash - - os: macos-13 - build_static: false - flags: CC=clang OSX=13 + flags: CC=gcc-13 CXX=g++-13 OSX=13 ADD_CXXFLAGS=-Wl,-ld_classic download_requirements: brew install metis bash steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ github.event.repository.name }} - name: Install required packages from package manager run: ${{ matrix.download_requirements }} - name: Checkout coinbrew - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: coin-or/coinbrew path: coinbrew @@ -70,7 +66,7 @@ jobs: cp ${{ github.event.repository.name }}/LICENSE dist/ tar -czvf release.tar.gz -C dist . - name: Checkout package name generation script - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: coin-or-tools/platform-analysis-tools path: tools @@ -85,9 +81,9 @@ jobs: echo "platform_string=${platform_str}" >> $GITHUB_ENV - name: Upload Artifact if: ${{ github.event_name == 'pull_request'}} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ github.event.repository.name }}-${{ github.head_ref }}-${{ env.platform_string }}.tar.gz + name: ${{ github.event.repository.name }}-${{ env.platform_string }}.tar.gz path: release.tar.gz if-no-files-found: error - name: Upload package to release diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 74b1a1e8..189b72d2 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -22,19 +22,17 @@ jobs: include: [ { os: windows-2019, arch: x86_64, msystem: mingw64, debug: true, suffix: "-dbg" }, { os: windows-2019, arch: x86_64, msystem: mingw64, debug: false, suffix: "" }, - { os: windows-2019, arch: i686, msystem: mingw32, debug: true, suffix: "-dbg" }, - { os: windows-2019, arch: i686, msystem: mingw32, debug: false, suffix: "" }, { os: windows-2019, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" }, { os: windows-2022, arch: msvc, msystem: mingw64, debug: false, suffix: "-md" }, { os: windows-2022, arch: msvs, msystem: mingw64, debug: false, suffix: "" }, ] steps: - name: Checkout source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: ${{ github.event.repository.name }} - name: Checkout coinbrew - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: coin-or/coinbrew path: coinbrew @@ -43,7 +41,7 @@ jobs: uses: ilammy/msvc-dev-cmd@v1 - name: Set up for msvs if: ${{ matrix.arch == 'msvs' }} - uses: microsoft/setup-msbuild@v1.1 + uses: microsoft/setup-msbuild@v2 - name: Set correct host flag and install requirements if: ${{ matrix.arch != 'msvc' && matrix.arch != 'msvs' }} run: | @@ -91,13 +89,10 @@ jobs: copy ${{ github.event.repository.name }}\LICENSE.* dist\. mkdir dist\bin copy ${{ github.event.repository.name }}\MSVisualStudio\v17\x64\Release\*.exe dist\bin\. - mkdir dist\include\coin - copy ${{ github.event.repository.name }}\src\*.h dist\include\coin\. - copy ${{ github.event.repository.name }}\src\*.hpp dist\include\coin\. - mkdir dist\lib - copy ${{ github.event.repository.name }}\MSVisualStudio\v17\x64\Release\*.lib dist\lib\. - mkdir dist\share\coin\Data - xcopy Data dist\share\coin\Data\. /s /e + mkdir dist\share + if exist .\Data\Sample xcopy .\Data\Sample dist\share\coin-or-sample /i + if exist .\Data\Netlib xcopy .\Data\Netlib dist\share\coin-or-netlib /i + if exist .\Data\Miplib3 xcopy .\Data\Miplib3 dist\share\coin-or-miplib3 /i - name: Build project using coinbrew if: ${{ matrix.arch != 'msvs' }} run: | @@ -115,7 +110,7 @@ jobs: cp ${{ github.event.repository.name }}/LICENSE dist/ shell: msys2 {0} - name: Upload failed build directory - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: failure() with: name: ${{ matrix.os}}-{{ matrix.arch }}-debug=${{ matrix.debug }}-failedbuild @@ -133,9 +128,9 @@ jobs: if: ${{ matrix.arch != 'msvc' }} - name: Upload artifact if: ${{ github.event_name == 'pull_request'}} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: ${{ github.event.repository.name }}-${{ github.head_ref }}-${{ env.package_suffix }} + name: ${{ github.event.repository.name }}-${{ env.package_suffix }} path: dist if-no-files-found: error - name: Zip up dist contents for release diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5e0d02a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Ignore VS files +*.suo +*.db +*.bak +*.user +**/.vs/ +**/MSVisualStudio/**/Release/ +**/MSVisualStudio/**/ReleaseParallel/ +**/MSVisualStudio/**/Debug/ + +# Ignore files created during unit tests +**/MSVisualStudio/**/*.mps +**/MSVisualStudio/**/*.lp +**/MSVisualStudio/**/*.out