diff --git a/.github/workflows/mxe.yml b/.github/workflows/mxe.yml deleted file mode 100644 index e60559f57c7..00000000000 --- a/.github/workflows/mxe.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Windows cross build with MXE - -on: - push: - branches: - - master - - release-** - paths: - - 'src/**' - - 'external/**' - - 'python/**' - - 'tests/**' - - 'ms-windows/**' - - 'CMakeLists.txt' - - '.github/workflows/mxe.yml' - pull_request: - branches: - - master - - release-** - paths: - - 'src/**' - - 'external/**' - - 'python/**' - - 'tests/**' - - 'ms-windows/**' - - 'CMakeLists.txt' - - '.github/workflows/mxe.yml' - -jobs: - build: - - env: - CCACHE_DIR: ${{ github.workspace }}/.ccache - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Build Dockerfile - run: | - cd ms-windows/mxe - docker build -f mxe.Dockerfile --tag mxe-qt5-builder:current . - - - name: Prepare build cache for pull request - uses: pat-s/always-upload-cache@v2.1.3 - if: github.event_name == 'pull_request' - with: - path: ${{ github.workspace }}/.ccache - key: mxe-ccache-${{ github.actor }}-${{ github.head_ref }}-${{ github.sha }} - # The head_ref or source branch of the pull request in a workflow run. - # The base_ref or target branch of the pull request in a workflow run. - restore-keys: | - mxe-ccache-${{ github.actor }}-${{ github.head_ref }}- - mxe-ccache-${{ github.base_ref }}- - mxe-ccache-refs/heads/master- - - - name: Prepare build cache for branch/tag - # use a fork of actions/cache@v2 to upload cache even when the build or test failed - uses: pat-s/always-upload-cache@v2.1.3 - if: github.event_name != 'pull_request' - with: - path: ${{ github.workspace }}/.ccache - # The branch or tag ref that triggered the workflow run. For branches this in the format refs/heads/, and for tags it is refs/tags/ - key: mxe-ccache-${{ github.ref }}-${{ github.sha }} - restore-keys: | - mxe-ccache-${{ github.ref }}- - mxe-ccache-refs/heads/master- - - - name: Cross build with MXE - run: | - mkdir -p ${{ github.workspace }}/.ccache - docker run -v ${GITHUB_WORKSPACE}:/root/QGIS \ - -w /root/QGIS \ - --env CCACHE_DIR=/root/QGIS/.ccache \ - mxe-qt5-builder:current \ - /root/QGIS/ms-windows/mxe/build-mxe.sh - - - name: Rename artifact - run: | - cd $GITHUB_WORKSPACE - mv qgis-mxe-release-*.zip qgis-mxe-release.zip - - - name: Upload build - uses: actions/upload-artifact@v2.2.2 - with: - name: QGIS for Windows 64bit - path: qgis-mxe-release.zip -