Add 'imgchest.com', 'gofile.io' #77 #441
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Uptooda | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/main.yml | |
| - Source/** | |
| - Contrib/Include/** | |
| push: | |
| branches: | |
| - 'master' | |
| paths: | |
| - .github/workflows/main.yml | |
| - Source/** | |
| - Contrib/Include/** | |
| workflow_dispatch: | |
| env: | |
| CONAN_LOGIN_USERNAME_ZENDEN2K: ${{ secrets.CONAN_LOGIN_USERNAME_ZENDEN2K }} | |
| CONAN_PASSWORD_ZENDEN2K: ${{ secrets.CONAN_PASSWORD_ZENDEN2K }} | |
| jobs: | |
| windows: | |
| name: run on windows | |
| runs-on: windows-2022 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build_type: [Release] | |
| env: | |
| BUILD_TYPE: ${{ matrix.build_type }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Prepare sources | |
| shell: bash | |
| working-directory: ${{github.workspace}}/Source | |
| run: cp versioninfo.h.dist versioninfo.h | |
| - name: Install cmake | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| with: | |
| cmake-version: '3.31.6' | |
| - name: Get Conan | |
| uses: turtlebrowser/get-conan@main | |
| with: | |
| version: 2.11.0 | |
| - name: Add conan remote | |
| run: conan remote add zenden2k https://conan.svistunov.dev --index 0 | |
| - name: Create Build Environment | |
| run: cmake -E make_directory ${{github.workspace}}/Build | |
| - name: Configure CMake | |
| shell: bash | |
| working-directory: ${{github.workspace}}/Build | |
| run: cmake $GITHUB_WORKSPACE/Source -G "Visual Studio 17 2022" -A Win32 -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCONAN_HOST_PROFILE=$GITHUB_WORKSPACE/Conan/Profiles/windows_vs2022_x86_release -DCONAN_BUILD_PROFILE=$GITHUB_WORKSPACE/Conan/Profiles/windows_vs2022_x64_release_dynamic -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CONFIGURATION_TYPES:STRING=$BUILD_TYPE -DCMAKE_TRY_COMPILE_CONFIGURATION:STRING=$BUILD_TYPE | |
| - name: Build | |
| working-directory: ${{github.workspace}}/Build | |
| shell: bash | |
| run: cmake --build . --config $BUILD_TYPE | |
| - name: Tests | |
| working-directory: ${{github.workspace}}/Build | |
| shell: bash | |
| run: ./Tests/Release/Tests.exe --dir "${{github.workspace}}/Source/Tests/TestData" --sqdir "${{github.workspace}}/Source/Core/Scripting/API/Tests/" | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: "env.BUILD_TYPE == 'Release'" | |
| with: | |
| name: windows_artifacts | |
| path: | | |
| ${{github.workspace}}/Build/GUI/Release/uptooda.exe | |
| ${{github.workspace}}/Build/CLI/Release/uptooda-cli.exe | |
| ${{github.workspace}}/Build/Tests/Release/Tests.exe | |
| ubuntu: | |
| name: run on ubuntu | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| build_type: [Release] | |
| env: | |
| BUILD_TYPE: ${{ matrix.build_type }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: seanmiddleditch/gha-setup-ninja@master | |
| - name: Prepare sources | |
| shell: bash | |
| working-directory: ${{github.workspace}}/Source | |
| run: cp versioninfo.h.dist versioninfo.h | |
| - name: Install cmake | |
| uses: jwlawson/actions-setup-cmake@v2 | |
| with: | |
| cmake-version: '3.31.6' | |
| - name: Get Conan | |
| uses: turtlebrowser/get-conan@main | |
| with: | |
| version: 2.11.0 | |
| - name: Add conan remote | |
| run: conan remote add zenden2k https://conan.svistunov.dev --index 0 | |
| - name: Create Build Environment | |
| run: cmake -E make_directory ${{github.workspace}}/Build | |
| - name: Configure CMake | |
| shell: bash | |
| working-directory: ${{github.workspace}}/Build | |
| run: cmake $GITHUB_WORKSPACE/Source -G "Ninja Multi-Config" -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=conan_provider.cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CONFIGURATION_TYPES:STRING=$BUILD_TYPE -DCMAKE_TRY_COMPILE_CONFIGURATION:STRING=$BUILD_TYPE | |
| - name: Build | |
| working-directory: ${{github.workspace}}/Build | |
| shell: bash | |
| run: cmake --build . --config $BUILD_TYPE | |
| - name: Tests | |
| working-directory: ${{github.workspace}}/Build | |
| shell: bash | |
| run: ./Tests/Release/Tests --dir "${{github.workspace}}/Source/Tests/TestData" --sqdir "${{github.workspace}}/Source/Core/Scripting/API/Tests/" | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: "env.BUILD_TYPE == 'Release'" | |
| with: | |
| name: ubuntu_artifacts | |
| path: | | |
| ${{github.workspace}}/Build/CLI/Release/uptooda-cli | |
| ${{github.workspace}}/Build/Tests/Release/Tests |