Skip to content

Commit 0dfb592

Browse files
committed
feat: Update installation instructions and release workflow
- Revised the installation instructions in the README to streamline the setup process, including a one-command installation script. - Enhanced the release workflow to create tarballs for binaries and update checksum generation for better artifact management. - Improved the handling of binary uploads in the release process, ensuring correct file paths and formats for macOS and Linux distributions. - Added metadata fields in project models to support better tracking and organization of deployments.
1 parent a40d717 commit 0dfb592

File tree

27 files changed

+483
-133
lines changed

27 files changed

+483
-133
lines changed

.github/workflows/release.yml

Lines changed: 60 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,30 @@ jobs:
6666
run: strip target/release/temps
6767

6868
- name: Rename binary
69-
run: cp target/release/temps temps-linux-amd64
69+
run: cp target/release/temps temps
70+
71+
- name: Create tarball
72+
run: |
73+
tar -czf temps-linux-amd64.tar.gz temps
74+
ls -lh temps-linux-amd64.tar.gz
7075
7176
- name: Generate checksum
7277
run: |
73-
sha256sum temps-linux-amd64 > temps-linux-amd64.sha256
74-
cat temps-linux-amd64.sha256
78+
sha256sum temps-linux-amd64.tar.gz > temps-linux-amd64.tar.gz.sha256
79+
cat temps-linux-amd64.tar.gz.sha256
7580
7681
- name: Get binary info
7782
run: |
78-
ls -lh temps-linux-amd64
79-
file temps-linux-amd64
80-
./temps-linux-amd64 --version || echo "Note: Binary may require runtime dependencies"
83+
file temps
84+
./temps --version || echo "Note: Binary may require runtime dependencies"
8185
8286
- name: Upload artifacts
8387
uses: actions/upload-artifact@v4
8488
with:
8589
name: temps-linux-amd64
8690
path: |
87-
temps-linux-amd64
88-
temps-linux-amd64.sha256
91+
temps-linux-amd64.tar.gz
92+
temps-linux-amd64.tar.gz.sha256
8993
9094
build-darwin-amd64:
9195
name: Build macOS AMD64
@@ -134,26 +138,30 @@ jobs:
134138
run: strip target/x86_64-apple-darwin/release/temps
135139

136140
- name: Rename binary
137-
run: cp target/x86_64-apple-darwin/release/temps temps-darwin-amd64
141+
run: cp target/x86_64-apple-darwin/release/temps temps
142+
143+
- name: Create tarball
144+
run: |
145+
tar -czf temps-darwin-amd64.tar.gz temps
146+
ls -lh temps-darwin-amd64.tar.gz
138147
139148
- name: Generate checksum
140149
run: |
141-
shasum -a 256 temps-darwin-amd64 > temps-darwin-amd64.sha256
142-
cat temps-darwin-amd64.sha256
150+
shasum -a 256 temps-darwin-amd64.tar.gz > temps-darwin-amd64.tar.gz.sha256
151+
cat temps-darwin-amd64.tar.gz.sha256
143152
144153
- name: Get binary info
145154
run: |
146-
ls -lh temps-darwin-amd64
147-
file temps-darwin-amd64
148-
./temps-darwin-amd64 --version || echo "Note: Binary may require runtime dependencies"
155+
file temps
156+
./temps --version || echo "Note: Binary may require runtime dependencies"
149157
150158
- name: Upload artifacts
151159
uses: actions/upload-artifact@v4
152160
with:
153161
name: temps-darwin-amd64
154162
path: |
155-
temps-darwin-amd64
156-
temps-darwin-amd64.sha256
163+
temps-darwin-amd64.tar.gz
164+
temps-darwin-amd64.tar.gz.sha256
157165
158166
build-darwin-arm64:
159167
name: Build macOS ARM64
@@ -202,26 +210,30 @@ jobs:
202210
run: strip target/aarch64-apple-darwin/release/temps
203211

204212
- name: Rename binary
205-
run: cp target/aarch64-apple-darwin/release/temps temps-darwin-arm64
213+
run: cp target/aarch64-apple-darwin/release/temps temps
214+
215+
- name: Create tarball
216+
run: |
217+
tar -czf temps-darwin-arm64.tar.gz temps
218+
ls -lh temps-darwin-arm64.tar.gz
206219
207220
- name: Generate checksum
208221
run: |
209-
shasum -a 256 temps-darwin-arm64 > temps-darwin-arm64.sha256
210-
cat temps-darwin-arm64.sha256
222+
shasum -a 256 temps-darwin-arm64.tar.gz > temps-darwin-arm64.tar.gz.sha256
223+
cat temps-darwin-arm64.tar.gz.sha256
211224
212225
- name: Get binary info
213226
run: |
214-
ls -lh temps-darwin-arm64
215-
file temps-darwin-arm64
216-
./temps-darwin-arm64 --version || echo "Note: Binary may require runtime dependencies"
227+
file temps
228+
./temps --version || echo "Note: Binary may require runtime dependencies"
217229
218230
- name: Upload artifacts
219231
uses: actions/upload-artifact@v4
220232
with:
221233
name: temps-darwin-arm64
222234
path: |
223-
temps-darwin-arm64
224-
temps-darwin-arm64.sha256
235+
temps-darwin-arm64.tar.gz
236+
temps-darwin-arm64.tar.gz.sha256
225237
226238
create-release:
227239
name: Create Release
@@ -249,9 +261,9 @@ jobs:
249261
- name: Create combined checksums file
250262
run: |
251263
cd release
252-
cat temps-linux-amd64.sha256 > checksums.txt
253-
cat temps-darwin-amd64.sha256 >> checksums.txt
254-
cat temps-darwin-arm64.sha256 >> checksums.txt
264+
cat temps-linux-amd64.tar.gz.sha256 > checksums.txt
265+
cat temps-darwin-amd64.tar.gz.sha256 >> checksums.txt
266+
cat temps-darwin-arm64.tar.gz.sha256 >> checksums.txt
255267
echo "Combined checksums:"
256268
cat checksums.txt
257269
@@ -263,9 +275,9 @@ jobs:
263275
- name: Generate Homebrew formula
264276
run: |
265277
VERSION="${GITHUB_REF#refs/tags/v}"
266-
SHA256_LINUX_AMD64=$(awk '{print $1}' release/temps-linux-amd64.sha256)
267-
SHA256_DARWIN_AMD64=$(awk '{print $1}' release/temps-darwin-amd64.sha256)
268-
SHA256_DARWIN_ARM64=$(awk '{print $1}' release/temps-darwin-arm64.sha256)
278+
SHA256_LINUX_AMD64=$(awk '{print $1}' release/temps-linux-amd64.tar.gz.sha256)
279+
SHA256_DARWIN_AMD64=$(awk '{print $1}' release/temps-darwin-amd64.tar.gz.sha256)
280+
SHA256_DARWIN_ARM64=$(awk '{print $1}' release/temps-darwin-arm64.tar.gz.sha256)
269281
270282
echo "Generating Homebrew formula for version $VERSION"
271283
echo "Linux AMD64 SHA256: $SHA256_LINUX_AMD64"
@@ -315,13 +327,13 @@ jobs:
315327
#### Linux AMD64
316328
```bash
317329
# Download
318-
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-linux-amd64
330+
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-linux-amd64.tar.gz
319331
320-
# Make executable
321-
chmod +x temps-linux-amd64
332+
# Extract
333+
tar -xzf temps-linux-amd64.tar.gz
322334
323335
# Move to PATH
324-
sudo mv temps-linux-amd64 /usr/local/bin/temps
336+
sudo mv temps /usr/local/bin/temps
325337
326338
# Verify
327339
temps --version
@@ -330,13 +342,13 @@ jobs:
330342
#### macOS AMD64 (Intel)
331343
```bash
332344
# Download
333-
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-darwin-amd64
345+
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-darwin-amd64.tar.gz
334346
335-
# Make executable
336-
chmod +x temps-darwin-amd64
347+
# Extract
348+
tar -xzf temps-darwin-amd64.tar.gz
337349
338350
# Move to PATH
339-
sudo mv temps-darwin-amd64 /usr/local/bin/temps
351+
sudo mv temps /usr/local/bin/temps
340352
341353
# Verify
342354
temps --version
@@ -345,13 +357,13 @@ jobs:
345357
#### macOS ARM64 (Apple Silicon)
346358
```bash
347359
# Download
348-
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-darwin-arm64
360+
curl -LO https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/temps-darwin-arm64.tar.gz
349361
350-
# Make executable
351-
chmod +x temps-darwin-arm64
362+
# Extract
363+
tar -xzf temps-darwin-arm64.tar.gz
352364
353365
# Move to PATH
354-
sudo mv temps-darwin-arm64 /usr/local/bin/temps
366+
sudo mv temps /usr/local/bin/temps
355367
356368
# Verify
357369
temps --version
@@ -389,12 +401,12 @@ jobs:
389401
--title "${{ github.ref_name }}" \
390402
--notes-file release/release-notes.md \
391403
$PRERELEASE_FLAG \
392-
release/temps-linux-amd64 \
393-
release/temps-linux-amd64.sha256 \
394-
release/temps-darwin-amd64 \
395-
release/temps-darwin-amd64.sha256 \
396-
release/temps-darwin-arm64 \
397-
release/temps-darwin-arm64.sha256 \
404+
release/temps-linux-amd64.tar.gz \
405+
release/temps-linux-amd64.tar.gz.sha256 \
406+
release/temps-darwin-amd64.tar.gz \
407+
release/temps-darwin-amd64.tar.gz.sha256 \
408+
release/temps-darwin-arm64.tar.gz \
409+
release/temps-darwin-arm64.tar.gz.sha256 \
398410
release/checksums.txt \
399411
release/install.sh \
400412
release/temps.rb

.github/workflows/rust-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
echo "TimescaleDB is ready!"
114114
115115
- name: Run all workspace tests
116-
run: cargo test --workspace --all-features
116+
run: cargo test --no-fail-fast --workspace --all-features
117117
env:
118118
RUST_BACKTRACE: 1
119119
CARGO_INCREMENTAL: 0

0 commit comments

Comments
 (0)