diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ed58270..fd44a53 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,6 +27,8 @@ jobs: build-mode: none - language: javascript-typescript build-mode: none + - language: rust + build-mode: none steps: - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 @@ -40,8 +42,31 @@ jobs: node-version-file: .node-version cache: "pnpm" + - name: Setup Rust + uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b #master + with: + toolchain: stable + targets: x86_64-unknown-linux-gnu + - name: Install dependencies from lockfile run: pnpm install --frozen-lockfile + + - name: Install rust dependencies + working-directory: ./src-tauri + run: | + cargo build + + - name: Build nodecar sidecar + shell: bash + working-directory: ./nodecar + run: | + pnpm run build:linux-x64 + + - name: Copy nodecar binary to Tauri binaries + shell: bash + run: | + mkdir -p src-tauri/binaries + cp nodecar/dist/nodecar src-tauri/binaries/nodecar-x86_64-unknown-linux-gnu - name: Initialize CodeQL uses: github/codeql-action/init@b1e4dc3db58c9601794e22a9f6d28d45461b9dbf #v3.29.0 @@ -50,11 +75,6 @@ jobs: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - - if: matrix.build-mode == 'manual' - shell: bash - run: | - pnpm run build - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@b1e4dc3db58c9601794e22a9f6d28d45461b9dbf #v3.29.0 with: