diff --git a/.github/workflows/language-tests.yml b/.github/workflows/language-tests.yml index 9a50b03a0d..cd53c9acc9 100644 --- a/.github/workflows/language-tests.yml +++ b/.github/workflows/language-tests.yml @@ -48,12 +48,12 @@ jobs: - name: Install dependencies run: npm ci - - name: Build workspace - run: cargo build - - name: Build schemas run: npm run schemas + - name: Build workspace + run: cargo build --package bitwarden-json --package bitwarden-uniffi --all-features + - name: Zip languages dir run: zip -r languages.zip languages @@ -63,15 +63,12 @@ jobs: name: languages.zip path: ${{ github.workspace }}/languages.zip if-no-files-found: error - - - name: Bundle target debug libs - run: tar -czf target.debug.tar.gz target/debug/lib*.* - - name: Upload target + - name: Uplad c lib uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: - name: target.debug.tar.gz - path: ${{ github.workspace }}/target.debug.tar.gz + name: debug.libbitwarden_c.so + path: ${{ github.workspace }}/target/debug/libbitwarden_c.so if-no-files-found: error test: @@ -136,13 +133,15 @@ jobs: rm -rf languages unzip languages.zip - - name: Download target artifact + - name: Download C lib + if: matrix.language == 'ruby' uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: - name: target.debug.tar.gz - - - name: Untar target - run: tar -xzf target.debug.tar.gz + name: debug.libbitwarden_c.so + + - name: Move C lib + if: matrix.language == 'ruby' + run: mv debug.libbitwarden_c.so target/debug/libbitwarden_c.so - name: Set up run data run: |