From e4768820ca3aab12909d82ebad0de3d41f63b2e5 Mon Sep 17 00:00:00 2001 From: Antidote1911 Date: Mon, 20 May 2024 09:58:09 +0200 Subject: [PATCH] remove appveyor --- .github/workflows/Windows_Release.yml | 89 +++++++++++++++++++++++++++ README.md | 1 - appveyor.yml | 67 -------------------- 3 files changed, 89 insertions(+), 68 deletions(-) create mode 100644 .github/workflows/Windows_Release.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/Windows_Release.yml b/.github/workflows/Windows_Release.yml new file mode 100644 index 0000000..0002f95 --- /dev/null +++ b/.github/workflows/Windows_Release.yml @@ -0,0 +1,89 @@ +name: Windows Release + +on: + push: + branches: + - 'master' + # - 'continuous-integration' + tags: + - 'v*' + pull_request: + branches: + - 'master' + # - 'continuous-integration' + +defaults: + run: + shell: cmd + +env: + SOURCE_DIR: ${{ github.workspace }} + QT_VERSION: 5.15.2 + ARTIFACT: cryptyrust-test.zip + +jobs: + build: + runs-on: windows-2019 + + steps: + - name: (1) Checkout repo + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: (2) Get all tags for correct version determination + working-directory: ${{ github.workspace }} + run: | + git fetch --all --tags -f + - name: (3) Install Qt + uses: jurplel/install-qt-action@v2 + with: + version: ${{ env.QT_VERSION }} + host: windows + target: desktop + arch: win64_msvc2019_64 + dir: ${{ runner.temp }} + modules: qtcharts qt3d + setup-python: false + + - name: (4) Download JOM + uses: suisei-cn/actions-download-file@v1 + with: + url: http://download.qt.io/official_releases/jom/jom.zip + target: ${{ runner.temp }}\ + + - name: (5) Unzip JOM + working-directory: ${{ runner.temp }} + run: | + 7z x jom.zip -ojom + + - name: (6) Create build directory + run: mkdir ${{ runner.temp }}\build + + - name: (7) Set up Visual Studio shell + uses: egor-tensin/vs-shell@v2 + with: + arch: x64 + + - name: (8) Build + working-directory: ${{ runner.temp }}\build + run: | + qmake -r ${{ env.SOURCE_DIR }}\qtgui\cryptyrust.pro + ${{ runner.temp }}\jom\jom -j2 + cd release + windeployqt --qmldir ${{ env.SOURCE_DIR }} cryptyrust.exe --pdb --release --compiler-runtime + copy C:\Windows\System32\concrt140.dll . + copy C:\Windows\System32\vccorlib140.dll . + copy C:\Windows\System32\msvcp140.dll . + copy C:\Windows\System32\vcruntime140.dll . + + - name: (9) Zip build + working-directory: ${{ runner.temp }} + run: | + 7z a cryptyrust-test.zip ${{ runner.temp }}\build\* -r + + - name: (10) Save build artifact + uses: actions/upload-artifact@master + with: + name: ${{ env.ARTIFACT }} + path: ${{ runner.temp }}\${{ env.ARTIFACT }} \ No newline at end of file diff --git a/README.md b/README.md index aa8332d..78fd445 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Build status](https://ci.appveyor.com/api/projects/status/3yludsnwm5a1jnsa/branch/master?svg=true)](https://ci.appveyor.com/project/Antidote1911/cryptyrust/branch/master) [![Cargo Build & Test](https://github.com/Antidote1911/cryptyrust/actions/workflows/ci.yml/badge.svg)](https://github.com/Antidote1911/cryptyrust/actions/workflows/ci.yml) [![License: GPL3](https://img.shields.io/badge/License-GPL3-green.svg)](https://opensource.org/licenses/GPL-3.0) diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index e6b4073..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,67 +0,0 @@ -version: 1.0.0.{build} - -image: Visual Studio 2019 - -configuration: Release - -environment: - global: - TARGET: x86_64-pc-windows-msvc - RUST_VERSION: stable - CRATE_NAME: cryptyrust - CARGO_HOME: "c:\\cargo" - RUSTUP_HOME: "c:\\rustup" - - -install: - - set QTDIR=C:\Qt\6.3.0 - - set PATH=%PATH%;%QTDIR%\bin;C:\Qt\6.3.0\msvc2019_64\bin - - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 - - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe - - rustup-init.exe -y --default-host %TARGET% - - set PATH=%PATH%;C:\cargo\bin - - rustc -Vv - - cargo -V - -build_script: - - echo %arch% - - echo %APPVEYOR_BUILD_WORKER_IMAGE% - # - cargo test - - cargo build --release - - dir - - cd qtgui - - mkdir build - - cd build - - cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release .. - - dir - - nmake - - cd %APPVEYOR_BUILD_FOLDER% - - dir - - mkdir cryptyrust_win_x64 - - cd cryptyrust_win_x64 - - xcopy %APPVEYOR_BUILD_FOLDER%\target\release\cryptyrust_cli.exe %APPVEYOR_BUILD_FOLDER%\cryptyrust_win_x64\ - - xcopy %APPVEYOR_BUILD_FOLDER%\LICENSE %APPVEYOR_BUILD_FOLDER%\cryptyrust_win_x64\ - - xcopy %APPVEYOR_BUILD_FOLDER%\README.md %APPVEYOR_BUILD_FOLDER%\cryptyrust_win_x64\ - - xcopy %APPVEYOR_BUILD_FOLDER%\qtgui\build\cryptyrust.exe %APPVEYOR_BUILD_FOLDER%\cryptyrust_win_x64\ - - windeployqt --release --no-translations --no-opengl-sw cryptyrust.exe - -artifacts: - - path: cryptyrust_win_x64 - type: zip - -# deploy tagged releases to Github releases -deploy: - - provider: GitHub - release: $(appveyor_repo_tag_name) - description: 'Release of cryptyrust v${appveyor_repo_tag_name}' - draft: false - prerelease: false - do_rel: true - auth_token: - secure: +tfhnWlsWPfHXUdLqWA8LjT0q9toLiCuBZBUs+tRXLKTYOaxNpwZ/ezF25o8uvv+ - artifact: cryptyrust_win_x64.zip - force_update: true - on: - branch: master # release from master branch only - appveyor_repo_tag: true # deploy on tag push only -