Skip to content

Commit 77cddf7

Browse files
committed
try shared build
1 parent 773a779 commit 77cddf7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ jobs:
8282
- name: Build release
8383
run: cargo build --release
8484

85+
- name: Upload Linux release binary (for other jobs)
86+
if: matrix.os == 'ubuntu-latest'
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: rb-linux-release
90+
path: target/release/rb
91+
retention-days: 1
92+
8593
docker-build:
8694
name: Build and Push Docker Test Image
8795
runs-on: ubuntu-latest
@@ -123,19 +131,14 @@ jobs:
123131
steps:
124132
- uses: actions/checkout@v4
125133

126-
- name: Install Rust
127-
uses: dtolnay/rust-toolchain@stable
134+
- name: Download Linux release binary
135+
uses: actions/download-artifact@v4
128136
with:
129-
toolchain: 1.90.0
137+
name: rb-linux-release
138+
path: target/release/
130139

131-
- name: Cache cargo registry
132-
uses: actions/cache@v4
133-
with:
134-
path: |
135-
~/.cargo/registry
136-
~/.cargo/git
137-
target
138-
key: ubuntu-latest-cargo-${{ hashFiles('**/Cargo.lock') }}
140+
- name: Make binary executable
141+
run: chmod +x target/release/rb
139142

140143
- name: Log in to GitHub Container Registry
141144
uses: docker/login-action@v3
@@ -144,9 +147,6 @@ jobs:
144147
username: ${{ github.actor }}
145148
password: ${{ secrets.GITHUB_TOKEN }}
146149

147-
- name: Build Ruby Butler
148-
run: cargo build --release
149-
150150
- name: Try to pull Docker test image
151151
run: |
152152
docker compose pull

0 commit comments

Comments
 (0)