File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments