Skip to content

feat:fuck windows

feat:fuck windows #63

Workflow file for this run

name: commit_test
on:
push: #设置触发规则
branches:
- main
- master
jobs:
build:
strategy:
matrix: # 会分开成两个任务分别执行
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code #这部分是为了从github自动clone代码
uses: actions/checkout@v4
with:
submodules: true
- name: Install ubuntu build tools #这部分是安装依赖
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake
- name: Install macos build tools #这部分是安装依赖
if: matrix.os == 'macos-latest'
run: |
brew install cmake openssl
- name: Run in windows
if: matrix.os == 'windows-latest'
run: |
cd src
mkdir build
cd build
cmake -G "MinGW Makefiles" .. -DENABLE_SSL=OFF
make
../bin/test_bin.exe
- name: Run test #需要执行的命令
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
cd src
./build.sh
./bin/test_bin