diff --git a/.github/workflows/bot-pr-comment.yml b/.github/workflows/bot-pr-comment.yml deleted file mode 100644 index 1d83a4df0ae..00000000000 --- a/.github/workflows/bot-pr-comment.yml +++ /dev/null @@ -1,89 +0,0 @@ -on: - issue_comment: - types: [created] -name: OnCommentPR -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true -jobs: - label: - runs-on: ubuntu-latest - if: github.event.issue.pull_request != '' && github.event.comment.body == 'label!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - with: - ref: develop - - name: Add appropriate labels - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp --preserve .github/label.sh /tmp && /tmp/label.sh - check_format: - name: check-format - runs-on: ubuntu-18.04 - if: github.event.issue.pull_request != '' && github.event.comment.body == 'check-format!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - with: - ref: develop - - name: Check for formatting changes - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp --preserve .github/check-format.sh /tmp && /tmp/check-format.sh - - name: Upload code formatting patch - if: failure() - uses: actions/upload-artifact@v2 - with: - name: patch - path: format.patch - format: - name: format - runs-on: ubuntu-18.04 - if: github.event.issue.pull_request != '' && github.event.comment.body == 'format!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - with: - ref: develop - persist-credentials: false - - name: Commit formatting changes - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp --preserve .github/format.sh /tmp && /tmp/format.sh - rebase: - name: rebase - if: github.event.issue.pull_request != '' && github.event.comment.body == 'rebase!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') - runs-on: ubuntu-latest - steps: - - name: Checkout the latest code - uses: actions/checkout@v2 - with: - ref: develop - fetch-depth: 0 - persist-credentials: false - - name: Automatic Rebase - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp --preserve .github/rebase.sh /tmp && /tmp/rebase.sh - format-rebase: - name: format-rebase - if: github.event.issue.pull_request != '' && github.event.comment.body == 'format-rebase!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') - runs-on: ubuntu-18.04 - steps: - - name: Checkout the latest code - uses: actions/checkout@v2 - with: - ref: develop - fetch-depth: 0 - persist-credentials: false - - name: Automatic Formatting Rebase - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp --preserve .github/format-rebase.sh /tmp && /tmp/format-rebase.sh - - name: Upload code formatting diffs - if: success() - uses: actions/upload-artifact@v2 - with: - name: patch - path: diff.patch diff --git a/.github/workflows/bot-pr-created.yml b/.github/workflows/bot-pr-created.yml deleted file mode 100644 index 30b5e1c9f61..00000000000 --- a/.github/workflows/bot-pr-created.yml +++ /dev/null @@ -1,20 +0,0 @@ -on: - pull_request_target: - types: [opened] -name: OnNewPR -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true -jobs: - label: - runs-on: ubuntu-latest - if: github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER' - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - with: - ref: develop - - name: Add appropriate labels - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: .github/label.sh diff --git a/.github/workflows/bot-pr-updated.yml b/.github/workflows/bot-pr-updated.yml deleted file mode 100644 index 402342ee359..00000000000 --- a/.github/workflows/bot-pr-updated.yml +++ /dev/null @@ -1,62 +0,0 @@ -on: - pull_request_target: - types: [opened,synchronize] -name: OnSyncPR -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true -jobs: - check-format: - runs-on: ubuntu-18.04 - if: github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER' - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - with: - ref: develop - - name: Check for formatting changes - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: cp .github/check-format.sh /tmp && /tmp/check-format.sh - - name: Upload code formatting patch - if: failure() - uses: actions/upload-artifact@v2 - with: - name: patch - path: format.patch - abidiff: - runs-on: ubuntu-latest - if: github.event.pull_request.author_association == 'COLLABORATOR' || github.event.pull_request.author_association == 'MEMBER' || github.event.pull_request.author_association == 'OWNER' - env: - CMAKE_FLAGS: -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=DEBUG -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF -DGINKGO_BUILD_HWLOC=OFF -DGINKGO_BUILD_REFERENCE=OFF -DGINKGO_BUILD_OMP=OFF -DGINKGO_BUILD_CUDA=OFF -DGINKGO_BUILD_HIP=OFF -DGINKGO_BUILD_DPCPP=OFF - steps: - - name: Checkout the new code (shallow clone) - uses: actions/checkout@v2 - with: - path: new - ref: ${{ github.event.pull_request.head.ref }} - - name: Checkout the old code (shallow clone) - uses: actions/checkout@v2 - with: - path: old - ref: ${{ github.event.pull_request.base.ref }} - - name: Install abidiff - run: sudo apt-get install abigail-tools - - name: Build both libraries - run: | - mkdir build-new - mkdir build-old - cmake -B build-new new ${{ env.CMAKE_FLAGS }} - cmake -B build-old old ${{ env.CMAKE_FLAGS }} - cmake --build build-new -j`nproc` - cmake --build build-old -j`nproc` - - name: Compute abidiff - env: - GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} - run: old/.github/abidiff.sh - - name: Upload ABI diff - if: failure() - uses: actions/upload-artifact@v2 - with: - name: abi - path: abi.diff diff --git a/.github/workflows/joss.yml b/.github/workflows/joss.yml deleted file mode 100644 index 92aca560633..00000000000 --- a/.github/workflows/joss.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: JOSS-build - -on: - push: - paths: - - 'doc/joss/**' - -jobs: - joss-generate: - name: joss-pandoc - runs-on: [ubuntu-latest] - - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - - - name: setup - run: sudo apt-get install texlive-xetex pandoc pandoc-citeproc - - name: info - run: | - pandoc -v - - name: build - run: | - pushd . - mkdir build - cd build - mkdir doc - cd doc - cp -r ../../doc/joss ./ - cd joss - pandoc paper.md -o paper.pdf --bibliography ./paper.bib --latex-engine=xelatex - popd - - uses: actions/upload-artifact@v1.0.0 - with: - name: joss-paper - path: build/doc/joss/paper.pdf - diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index c01cabb0dc3..d05f35919f3 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -10,7 +10,7 @@ on: default: false concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} + group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/windows-cygwin.yml b/.github/workflows/windows-cygwin.yml deleted file mode 100644 index 4dec367563a..00000000000 --- a/.github/workflows/windows-cygwin.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: Windows-Cygwin - -on: - push: - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true - -jobs: - windows_cygwin: - strategy: - fail-fast: false - matrix: - config: - - {shared: "OFF", build_type: "Release", name: "omp/release/static", cflags: ""} - name: cygwin/${{ matrix.config.name }} - runs-on: [windows-latest] - steps: - - run: git config --global core.autocrlf input - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - - - name: setup - run: | - choco install cygwin -y - choco install cyg-get -y - cyg-get cmake make gcc-g++ git - - - name: Debug over SSH (tmate) - uses: mxschmitt/action-tmate@v3.5 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - - - name: configure - run: | - path C:\tools\cygwin\bin - mkdir build - cd build - bash -c "cmake -DBUILD_SHARED_LIBS=${{ matrix.config.shared }} -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DGINKGO_COMPILER_FLAGS=${{ matrix.config.cflags }} .." - bash -c "make -j4" - bash -c "ctest . --output-on-failure" - shell: cmd - - - name: install - run: | - path C:\tools\cygwin\bin - cd build - bash -c "make install" - bash -c "export PATH=/usr/local/bin:$PATH && make test_install" - shell: cmd diff --git a/.github/workflows/windows-mingw.yml b/.github/workflows/windows-mingw.yml deleted file mode 100644 index 0a470356ec5..00000000000 --- a/.github/workflows/windows-mingw.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Windows-MinGW - -on: - push: - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true - -jobs: - windows_mingw: - strategy: - fail-fast: false - matrix: - config: - - {shared: "OFF", build_type: "Release", name: "omp/release/static", cflags: ""} - name: mingw/${{ matrix.config.name }} - runs-on: [windows-latest] - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - - - name: Debug over SSH (tmate) - uses: mxschmitt/action-tmate@v3.5 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - - - name: configure - # Use cmd to remove the path easily - run: | - bcdedit /set IncreaseUserVa 3072 - editbin /LARGEADDRESSAWARE "C:\Program Files\Git\mingw64\bin\cc1plus.exe" - path %PATH:C:\Program Files\Git\bin;=% - path %PATH:C:\Program Files\Git\usr\bin;=% - mkdir build - cd build - cmake -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=${{ matrix.config.shared }} -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -DGINKGO_COMPILER_FLAGS=${{ matrix.config.cflags }} .. - cmake --build . -j4 - ctest . --output-on-failure - shell: cmd - - - name: install - run: | - set PATH=%PATH:C:\Program Files\Git\bin;=% - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%;C:\Program Files (x86)\Ginkgo\bin - cd build - cmake --install . - cmake --build . --target test_install - shell: cmd diff --git a/.github/workflows/windows-msvc-cuda.yml b/.github/workflows/windows-msvc-cuda.yml deleted file mode 100644 index 6bdfceee09b..00000000000 --- a/.github/workflows/windows-msvc-cuda.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Windows-MSVC-CUDA (compile-only) - -on: - push: - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true - -jobs: - windows_cuda: - strategy: - fail-fast: false - matrix: - config: - - {version: "latest", name: "cuda-latest/release/shared", "mixed": "ON"} - name: msvc/${{ matrix.config.name }} (only compile) - runs-on: [windows-latest] - - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - - name: setup (versioned) - if: matrix.config.version != 'latest' - run: | - choco install cuda --version=${{ matrix.config.version }} -y - - - name: setup (latest) - if: matrix.config.version == 'latest' - run: | - choco install cuda -y - - - name: Debug over SSH (tmate) - uses: mxschmitt/action-tmate@v3.5 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - - - name: configure - run: | - $env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - refreshenv - mkdir build - cd build - cmake -T version=14.25 -DGINKGO_BUILD_CUDA=ON -DGINKGO_BUILD_OMP=OFF -DGINKGO_MIXED_PRECISION=${{ matrix.config.mixed }} -DGINKGO_CUDA_ARCHITECTURES=60 .. - cmake --build . -j4 --config Release diff --git a/.github/workflows/windows-msvc-ref.yml b/.github/workflows/windows-msvc-ref.yml deleted file mode 100644 index 1ef21ee8777..00000000000 --- a/.github/workflows/windows-msvc-ref.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Windows-MSVC-Reference - -on: - push: - workflow_dispatch: - inputs: - debug_enabled: - description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' - required: false - default: false - -concurrency: - group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} - cancel-in-progress: true - -jobs: - windows_ref: - strategy: - fail-fast: false - matrix: - config: - - {shared: "ON", build_type: "Debug", name: "reference/debug/shared"} - - {shared: "OFF", build_type: "Release", name: "reference/release/static"} - # Debug static needs too much storage - # - {shared: "OFF", build_type: "Debug", name: "reference/debug/static"} - name: msvc/${{ matrix.config.name }} - runs-on: [windows-latest] - steps: - - name: Checkout the latest code (shallow clone) - uses: actions/checkout@v2 - - - name: Debug over SSH (tmate) - uses: mxschmitt/action-tmate@v3.5 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} - with: - limit-access-to-actor: true - - - name: configure - run: | - mkdir build - cd build - cmake -DBUILD_SHARED_LIBS=${{ matrix.config.shared }} -DCMAKE_CXX_FLAGS_DEBUG='/MDd /Zi /Ob1 /O1 /Od /RTC1' -DGINKGO_BUILD_CUDA=OFF -DGINKGO_BUILD_OMP=OFF .. - cmake --build . -j4 --config ${{ matrix.config.build_type }} - ctest . -C ${{ matrix.config.build_type }} --output-on-failure - - - name: install - run: | - $env:PATH="$env:PATH;C:\Program Files (x86)\Ginkgo\bin" - cd build - cmake --install . --config ${{ matrix.config.build_type }} - cmake --build . --target test_install --config ${{ matrix.config.build_type }}