Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde committed Jul 19, 2024
1 parent 6352d4f commit 2bc5047
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/MSVC6.0.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 2bc5047

Please sign in to comment.