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