Skip to content

Commit

Permalink
Hopefully minimize builds and uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
MGibson1 committed Sep 26, 2024
1 parent 11e334a commit 2e9656c
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/language-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 2e9656c

Please sign in to comment.