Guo-Haowei is testing out GitHub Actions #6
Workflow file for this run
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: CI | |
| run-name: ${{ github.actor }} is testing out GitHub Actions | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Download Source Code | |
| uses: actions/checkout@v4 | |
| - run: dir | |
| - name: Configure CMake | |
| uses: actions/checkout@v4 | |
| - run: cmake -S . -B build -A Win32 | |
| - name: Build with CMake | |
| run: cmake --build build --config Debug | |
| - name: Upload Build Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cc | |
| path: ./build/Debug/c.c.exe | |
| test: | |
| runs-on: windows-latest | |
| needs: build | |
| steps: | |
| - name: Download Source Code | |
| uses: actions/checkout@v4 | |
| - run: dir | |
| - name: Download Build Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: cc | |
| - name: Run Tests | |
| run: python -u .\run_tests.py |