diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d2f0451..ac90c91 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/action.yml b/action.yml index bc69e84..4415d83 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,7 @@ inputs: default: 'xcb-imdkit' install-prefix: description: 'Install prefix' + default: 'out/install' runs: using: composite @@ -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 }}"