Skip to content

Commit

Permalink
remove appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
Antidote1911 committed May 20, 2024
1 parent f8b211b commit e476882
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 68 deletions.
89 changes: 89 additions & 0 deletions .github/workflows/Windows_Release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
67 changes: 0 additions & 67 deletions appveyor.yml

This file was deleted.

0 comments on commit e476882

Please sign in to comment.