Skip to content

Commit

Permalink
ci: use xmake master branch
Browse files Browse the repository at this point in the history
ci: disable clang-format
  • Loading branch information
ShrBox committed Jun 18, 2024
1 parent f27b2ac commit 99d4137
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master

- uses: actions/cache@v4
with:
Expand All @@ -34,15 +36,15 @@ jobs:
path: |
bin/
clang-format:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# clang-format:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v4

- run: |
choco install llvm -y --version=17.0.6
# - run: |
# choco install llvm -y --version=17.0.6

- name: clang-format
run: |
Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
# - name: clang-format
# run: |
# Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
# Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format --dry-run -Werror $_.FullName; if ($LASTEXITCODE -ne 0) { exit 1; } }
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: branch@master

- uses: actions/cache@v4
with:
Expand Down

0 comments on commit 99d4137

Please sign in to comment.