Skip to content

Merge to main

Merge to main #34

Workflow file for this run

name: Build
on:
push:
branches:
- main
#可以手动触发
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
- name: Setup Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.2'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
cache: true
- uses: lukka/get-cmake@latest
- name: Setup aws-sdk-cpp
run: |
git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp
cd aws-sdk-cpp
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="C:/Program Files (x86)/aws" -DBUILD_ONLY="s3"
cmake --build . --config=Release
cmake --install . --config=Release
cd ../..
#display the content of the directory
ls
- name: Run CMake
run: |
#set DCMAKE_PREFIX_PATH to environment variable %QTDIR%
cmake -B build -S . -G "Visual Studio 17 2022" -DCMAKE_PREFIX_PATH=$env:QTDIR -DCMAKE_BUILD_TYPE=Debug
cmake --build build --config Debug --parallel 18
mkdir output
#copy all .exe, .dll, .pdb files to output directory
xcopy /s /y build\*.exe output
xcopy /s /y build\*.dll output
xcopy /s /y build\*.pdb output
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
path: output
name: Debug