From 2e9656c3dbc0eef3a6e4f89d2bd0501bcd312f7a Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 25 Sep 2024 17:17:01 -0700 Subject: [PATCH] Hopefully minimize builds and uploads --- .github/workflows/language-tests.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/language-tests.yml b/.github/workflows/language-tests.yml index 9a50b03a0..cd53c9acc 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: |