diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 45e52ac..efc0126 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,10 +2,10 @@ name: C/C++ CI on: push: - branches: [ "master" ] + branches: [ "workflow-test" ] paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ] pull_request: - branches: [ "master" ] + branches: [ "workflow-test" ] paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ] jobs: @@ -17,6 +17,7 @@ jobs: - ubuntu-latest - ubuntu-24.04-arm - macos-15 + - windows-2022 runs-on: ${{ matrix.target }} steps: - uses: actions/checkout@v4 @@ -28,12 +29,15 @@ jobs: - name: ln Mac if: ${{ startsWith(matrix.target, 'macos') }} run: ln -s Makefile.FreeBSD Makefile + - name: ln Windows + if: ${{ startsWith(matrix.target, 'windows') }} + run: copy Makefile.msvc64 Makefile - name: make - run: make -f Makefile + run: make - name: mkdir run: mkdir ~/3proxy - name: make install if: ${{ startsWith(matrix.target, 'ubuntu') }} - run: make DESTDIR=~/3proxy -f Makefile install + run: make DESTDIR=~/3proxy install - name: make clean - run: make -f Makefile clean + run: make clean