Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 8, 2023
1 parent 6cbce46 commit ef18e55
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ name: build cli
on:
push:
tags:
- 'v*'
- "v*"
branches:
- '**'
- "**"
paths:
- '.github/workflows/ci.yml'
- 'source/cli/**'
- 'MaaFramework/**'
- 'assets/**'
- 'cmake/**'
- 'CMakelists.txt'
- 'CMakePresets.json'
- ".github/workflows/ci.yml"
- "source/cli/**"
- "MaaFramework/**"
- "assets/**"
- "cmake/**"
- "CMakelists.txt"
- "CMakePresets.json"
pull_request:
branches:
- '**'
- "**"
paths:
- '.github/workflows/ci.yml'
- 'source/cli/**'
- 'MaaFramework/**'
- 'assets/**'
- 'cmake/**'
- 'CMakelists.txt'
- 'CMakePresets.json'
- ".github/workflows/ci.yml"
- "source/cli/**"
- "MaaFramework/**"
- "assets/**"
- "cmake/**"
- "CMakelists.txt"
- "CMakePresets.json"
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
run: |
cmake --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }}" -DM9A_HASH_VERSION='${{ needs.meta.outputs.tag }}'
cmake --build build --preset "${{ matrix.arch == 'x86_64' && 'MSVC 2022' || 'MSVC 2022 ARM' }} - Release" -j 16
cmake --build build --config Release -j 16
- name: Install
shell: bash
Expand All @@ -99,7 +99,6 @@ jobs:
name: MAA1999-win-${{ matrix.arch }}
path: "install"


ubuntu:
needs: meta
runs-on: ubuntu-latest
Expand Down Expand Up @@ -157,7 +156,7 @@ jobs:
cmake --preset 'NinjaMulti' \
-DM9A_HASH_VERSION='${{ needs.meta.outputs.tag }}'
cmake --build build --preset 'NinjaMulti - Release' -j 16
cmake --build build --config Release -j 16
- name: Install
shell: bash
Expand Down Expand Up @@ -214,7 +213,7 @@ jobs:
-DARCH='${{ matrix.arch == 'x86_64' && 'x64' || 'arm64' }}' \
-DM9A_HASH_VERSION='${{ needs.meta.outputs.tag }}'
cmake --build build --preset 'NinjaMulti - Release' -j 16
cmake --build build --config Release -j 16
- name: Install
shell: bash
Expand Down

0 comments on commit ef18e55

Please sign in to comment.