build deps cicd

This commit is contained in:
SoftFever 2023-06-07 15:42:18 +08:00
parent 483febb01d
commit 6aa84e8c42

View File

@ -11,6 +11,7 @@ on:
jobs: jobs:
build: build:
strategy: strategy:
fail-fast: true
matrix: matrix:
include: include:
- os: ubuntu-20.04 - os: ubuntu-20.04
@ -22,9 +23,13 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: setup dev on Windows
if: matrix.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Build on Windows - name: Build on Windows
if: matrix.os == 'Windows'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
if: ${{ runner.os == 'Windows' }}
run: | run: |
choco install strawberryperl choco install strawberryperl
mkdir ${{ github.workspace }}/deps/build mkdir ${{ github.workspace }}/deps/build
@ -32,7 +37,7 @@ jobs:
.\build_release.bat deps .\build_release.bat deps
- name: Build on Mac x86_64 - name: Build on Mac x86_64
if: ${{ runner.os == 'macos-12' }} if: ${{ runner.os == 'macOS' }}
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
brew install cmake git gettext brew install cmake git gettext
@ -41,7 +46,7 @@ jobs:
./build_release_macos.sh -d -a x86_64 ./build_release_macos.sh -d -a x86_64
- name: Build on Ubuntu - name: Build on Ubuntu
if: ${{ runner.os == 'ubuntu-20.04' }} if: matrix.os == 'ubuntu-20.04'
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
run: | run: |
sudo apt-get update sudo apt-get update