Skip to content

Commit a3535d1

Browse files
committed
release: 1.0.1-alpha.1
1 parent aedb1b6 commit a3535d1

File tree

7 files changed

+97
-323
lines changed

7 files changed

+97
-323
lines changed

.github/workflows/auto-tag.yml

Lines changed: 0 additions & 104 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919

2020
- name: Install Rust toolchain
2121
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
toolchain: 1.81.0
24+
25+
- name: Install stable toolchain
26+
run: rustup toolchain install stable
2227

2328
- name: Audit dependencies
2429
shell: bash
@@ -41,7 +46,7 @@ jobs:
4146
toolchain: 1.81.0
4247

4348
- name: Tests (MSRV)
44-
run: cargo test --all
49+
run: cargo test --all --locked
4550

4651
build_test:
4752
name: Nova Robot - Test + Build (debug)
@@ -58,10 +63,10 @@ jobs:
5863
components: rustfmt, clippy
5964

6065
- name: Tests
61-
run: cargo test --all
66+
run: cargo test --all --locked
6267

6368
- name: Build (debug)
64-
run: cargo build --profile dev
69+
run: cargo build --profile dev --locked
6570

6671
fmt_clippy:
6772
name: Nova Robot - Format + Clippy
@@ -81,7 +86,7 @@ jobs:
8186
run: cargo fmt --all -- --check
8287

8388
- name: Clippy
84-
run: cargo clippy --all-targets --all-features -- -D warnings
89+
run: cargo clippy --locked --all-targets --all-features -- -D warnings
8590

8691
deny:
8792
name: Nova Robot - Dependency policy (cargo-deny)

.github/workflows/gitbot-deps.yml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,20 @@ name: "🤖 Auto Update Dependencies"
1111

1212
on:
1313
schedule:
14-
- cron: '0 0 * * *' # Daily at 8 AM Singapore time (00:00 UTC)
15-
workflow_dispatch: # Manual trigger
14+
- cron: "0 1 * * *"
15+
workflow_dispatch:
1616
inputs:
17-
force_update:
18-
description: 'Force update even if tests fail'
19-
required: false
20-
default: 'false'
2117
strategy:
22-
description: 'Update strategy: direct (push to main) or pr (open a pull request)'
23-
required: false
24-
default: 'direct'
18+
description: "How to publish updates"
19+
type: choice
20+
options:
21+
- direct
22+
- pr
23+
default: direct
24+
force_update:
25+
description: "Continue even if tests fail"
26+
type: boolean
27+
default: false
2528

2629
permissions:
2730
contents: write
@@ -31,6 +34,7 @@ permissions:
3134
env:
3235
CARGO_TERM_COLOR: always
3336
UPDATE_STRATEGY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.strategy || 'direct' }}
37+
FORCE_UPDATE: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force_update || 'false' }}
3438

3539
jobs:
3640
auto-update:
@@ -48,7 +52,7 @@ jobs:
4852
uses: dtolnay/rust-toolchain@stable
4953
with:
5054
toolchain: 1.81.0
51-
components: clippy
55+
components: rustfmt, clippy
5256

5357
- name: Install stable toolchain
5458
run: rustup toolchain install stable
@@ -75,32 +79,39 @@ jobs:
7579
- name: Security audit
7680
run: |
7781
echo "Running security audit..."
78-
cargo +stable install cargo-audit --locked || true
79-
cargo +stable audit || echo "Audit warnings detected (non-blocking)"
80-
continue-on-error: true
82+
cargo +stable install cargo-audit --locked
83+
cargo +stable audit
84+
85+
- name: Dependency policy (cargo-deny)
86+
run: |
87+
cargo +stable install cargo-deny --locked
88+
cargo +stable deny check all
89+
90+
- name: Format check
91+
run: cargo fmt --all -- --check
8192

8293
- name: Build project
8394
run: |
8495
echo "Building with updated dependencies..."
85-
cargo build --profile release
96+
cargo build --profile dev --locked
97+
cargo build --profile release --locked
8698
8799
echo ""
88100
echo "Build successful with updated deps"
89101
90102
- name: Run tests
91103
run: |
92104
echo "Running test suite..."
93-
cargo test --all
105+
cargo test --all --locked
94106
95107
echo ""
96108
echo "All tests passed"
97-
continue-on-error: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force_update == 'true' }}
109+
continue-on-error: ${{ env.FORCE_UPDATE == 'true' }}
98110

99111
- name: Quick clippy check
100112
run: |
101113
echo "Running clippy sanity check..."
102-
cargo clippy --all-targets -- -D warnings || echo "Clippy warnings (non-blocking)"
103-
continue-on-error: true
114+
cargo clippy --locked --all-targets --all-features -- -D warnings
104115
105116
- name: Configure Git
106117
run: |
@@ -185,7 +196,7 @@ jobs:
185196
186197
echo "----------------------------------------"
187198
echo ""
188-
echo "Next run: Tomorrow 00:00 UTC (07:00 WIB / 08:00 SGT)"
199+
echo "Next run: 01:00 UTC (08:00 WIB)"
189200
echo "Manual trigger: Actions -> Auto Update Dependencies -> Run workflow"
190201
191202
concurrency:

.github/workflows/release.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ name: Release
33
on:
44
push:
55
tags: ["v*"]
6-
workflow_dispatch:
7-
inputs:
8-
tag:
9-
description: "Tag to release (e.g. v1.0.0, v1.0.0-rc.1)"
10-
required: true
11-
type: string
126

137
permissions:
148
contents: write
@@ -27,18 +21,13 @@ jobs:
2721
uses: actions/checkout@v4
2822
with:
2923
fetch-depth: 0
30-
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
3124

3225
- name: Determine version
3326
id: ver
3427
shell: bash
3528
run: |
3629
set -euo pipefail
37-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
38-
TAG="${{ inputs.tag }}"
39-
else
40-
TAG="${GITHUB_REF_NAME}"
41-
fi
30+
TAG="${GITHUB_REF_NAME}"
4231
4332
TAG="${TAG## }"
4433
TAG="${TAG%% }"
@@ -67,7 +56,7 @@ jobs:
6756
cargo +stable audit
6857
6958
- name: Tests
70-
run: cargo test --all
59+
run: cargo test --all --locked
7160

7261
- name: Build (debug)
7362
run: cargo build --profile dev --locked
@@ -84,7 +73,7 @@ jobs:
8473
cargo +stable deny check all
8574
8675
- name: Clippy
87-
run: cargo clippy --all-targets --all-features -- -D warnings
76+
run: cargo clippy --locked --all-targets --all-features -- -D warnings
8877

8978
- name: Package (.tar.xz)
9079
shell: bash
@@ -136,18 +125,13 @@ jobs:
136125
uses: actions/checkout@v4
137126
with:
138127
fetch-depth: 0
139-
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
140128

141129
- name: Determine version
142130
id: ver
143131
shell: bash
144132
run: |
145133
set -euo pipefail
146-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
147-
TAG="${{ inputs.tag }}"
148-
else
149-
TAG="${GITHUB_REF_NAME}"
150-
fi
134+
TAG="${GITHUB_REF_NAME}"
151135
152136
TAG="${TAG## }"
153137
TAG="${TAG%% }"
@@ -236,18 +220,13 @@ jobs:
236220
uses: actions/checkout@v4
237221
with:
238222
fetch-depth: 0
239-
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref }}
240223

241224
- name: Determine version
242225
id: ver
243226
shell: bash
244227
run: |
245228
set -euo pipefail
246-
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
247-
TAG="${{ inputs.tag }}"
248-
else
249-
TAG="${GITHUB_REF_NAME}"
250-
fi
229+
TAG="${GITHUB_REF_NAME}"
251230
252231
TAG="${TAG## }"
253232
TAG="${TAG%% }"
@@ -256,10 +235,13 @@ jobs:
256235
fi
257236
258237
VERSION="${TAG#v}"
238+
PRE="false"
259239
if [[ "${VERSION}" == *-* ]]; then
260-
PRE="true"
261-
else
262-
PRE="false"
240+
SUFFIX="${VERSION#*-}"
241+
case "${SUFFIX}" in
242+
stable.*) PRE="false";;
243+
*) PRE="true";;
244+
esac
263245
fi
264246
265247
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
@@ -303,6 +285,7 @@ jobs:
303285
name: cosmostrix ${{ steps.prep.outputs.version }}
304286
draft: false
305287
prerelease: ${{ steps.ver.outputs.prerelease }}
288+
make_latest: ${{ steps.ver.outputs.prerelease != 'true' }}
306289
body_path: release-notes.md
307290
files: |
308291
dist/**/**/*.tar.xz

0 commit comments

Comments
 (0)