From 2bc5047c80b62abb45beb36a791a7f9697b6e45a Mon Sep 17 00:00:00 2001 From: flagarde Date: Fri, 19 Jul 2024 14:34:07 +0200 Subject: [PATCH] test --- .github/workflows/MSVC6.0.yml | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/MSVC6.0.yml diff --git a/.github/workflows/MSVC6.0.yml b/.github/workflows/MSVC6.0.yml new file mode 100644 index 0000000..53c8278 --- /dev/null +++ b/.github/workflows/MSVC6.0.yml @@ -0,0 +1,65 @@ +--- +name: MSVC6.0 + +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + MSVC6: + runs-on: windows-latest + name: 'MSVC 6.0' + + steps: + - name: ๐Ÿ“ฅ Checkout + uses: actions/checkout@v4 + + - name: ๐Ÿ“ฅ Install MSVC6.0 + uses: actions/checkout@v4 + with: + repository: 'itsmattkc/MSVC600' + path: './' + + - name: Setup MSVC6.0 + run: ./VC98/bin/VCVARS32.bat + + - name: โฌ‡๏ธ Setup CMake + uses: lukka/get-cmake@latest + with: + cmakeVersion: ^3.5 + ninjaVersion: ^1.11.1 + + - name: ๐Ÿ“‚ Load .env file + if: hashFiles('.github/workflows/.env') != '' + uses: xom9ikk/dotenv@v2 + with: + path: .github/workflows + + - name: โš™๏ธ run-cmake (configure) + uses: cmake-tools/run-cmake@v0-alpha + id: 'configure' + with: + mode: configure + generator: 'Visual Studio 6' + source_dir: ${{ env.CMAKE_SOURCE_PREFIX }} + install_prefix: ${{ env.CMAKE_INSTALL_PREFIX }} + binary_dir: ${{ env.CMAKE_BINARY_PREFIX }} + variables: | + CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} + + - name: ๐Ÿ› ๏ธ run-cmake (build) + uses: cmake-tools/run-cmake@v0-alpha + id: build + with: + mode: build + config: ${{ env.CMAKE_BUILD_TYPE }} + + - name: ๐Ÿงช Test + run: ctest --test-dir ${{ env.CMAKE_BINARY_PREFIX }} -C ${{ env.CMAKE_BUILD_TYPE }} --output-on-failure + - name: ๐ŸŽ‰ Install + run: cmake --install ${{ env.CMAKE_BINARY_PREFIX }} --prefix ${{ env.CMAKE_INSTALL_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }}