mirror of
https://github.com/3proxy/3proxy.git
synced 2025-04-21 19:52:08 +08:00
Update c-cpp.yml
This commit is contained in:
parent
c71370ec03
commit
4dbe70f5ca
14
.github/workflows/c-cpp.yml
vendored
14
.github/workflows/c-cpp.yml
vendored
@ -2,10 +2,10 @@ name: C/C++ CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "workflow-test" ]
|
||||||
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "master" ]
|
branches: [ "workflow-test" ]
|
||||||
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
paths: [ '**.c', '**.h', 'Makefile.**', '.github/configs', '.github/workflows/c-cpp.yml' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -17,6 +17,7 @@ jobs:
|
|||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- ubuntu-24.04-arm
|
- ubuntu-24.04-arm
|
||||||
- macos-15
|
- macos-15
|
||||||
|
- windows-2022
|
||||||
runs-on: ${{ matrix.target }}
|
runs-on: ${{ matrix.target }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -28,12 +29,15 @@ jobs:
|
|||||||
- name: ln Mac
|
- name: ln Mac
|
||||||
if: ${{ startsWith(matrix.target, 'macos') }}
|
if: ${{ startsWith(matrix.target, 'macos') }}
|
||||||
run: ln -s Makefile.FreeBSD Makefile
|
run: ln -s Makefile.FreeBSD Makefile
|
||||||
|
- name: ln Windows
|
||||||
|
if: ${{ startsWith(matrix.target, 'windows') }}
|
||||||
|
run: copy Makefile.msvc64 Makefile
|
||||||
- name: make
|
- name: make
|
||||||
run: make -f Makefile
|
run: make
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
run: mkdir ~/3proxy
|
run: mkdir ~/3proxy
|
||||||
- name: make install
|
- name: make install
|
||||||
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
if: ${{ startsWith(matrix.target, 'ubuntu') }}
|
||||||
run: make DESTDIR=~/3proxy -f Makefile install
|
run: make DESTDIR=~/3proxy install
|
||||||
- name: make clean
|
- name: make clean
|
||||||
run: make -f Makefile clean
|
run: make clean
|
||||||
|
Loading…
Reference in New Issue
Block a user