Skip to content

Commit

Permalink
Try fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Mar 5, 2024
1 parent f88d3f3 commit 82f9b78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: c
- uses: actions/checkout@v4
- name: Build and Install
uses: ./xcb-imdkit
uses: .
with:
path: .
- name: Test
run: |
ctest --test-dir xcb-imdkit/build
ctest --test-dir build
- name: CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ inputs:
default: 'xcb-imdkit'
install-prefix:
description: 'Install prefix'
default: 'out/install'

runs:
using: composite
Expand All @@ -14,6 +15,7 @@ runs:
uses: actions/checkout@v4
repository: fcitx/xcb-imdkit
path: ${{ inputs.path }}
if: github.repository != 'fcitx/xcb-imdkit'
- name: Configure
run: |
cmake -S "${{ inputs.path }}" -B "${{ inputs.path }}"/build -DCMAKE_INSTALL_PREFIX="${{ inputs.install-prefix }}"
Expand Down

0 comments on commit 82f9b78

Please sign in to comment.