Skip to content

Commit 38ef049

Browse files
authored
adding to ci cargo build --release (#1553)
* adding to ci cargo build --release * adding to ci cargo build --release * add to sanity
1 parent 8e2b267 commit 38ef049

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/loco-rs-ci-sanity.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ on:
1818
push:
1919
branches:
2020
- master
21-
paths-ignore:
22-
- "loco-gen/**"
23-
- "loco-new/**"
2421
pull_request:
25-
paths-ignore:
26-
- "loco-gen/**"
27-
- "loco-new/**"
2822

2923
env:
3024
RUST_TOOLCHAIN: stable
@@ -55,13 +49,15 @@ jobs:
5549
loco new -n myappdb --db sqlite --bg async --assets serverside -a
5650
cd myappdb
5751
cargo check
52+
cargo build --release
5853
env:
5954
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
6055
6156
- run: |
6257
loco new -n myapp --db none --bg none --assets none -a
6358
cd myapp
6459
cargo check
60+
cargo build --release
6561
env:
6662
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
6763

.github/workflows/loco-rs-ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,24 @@ jobs:
5151
tool: cargo-hack
5252
- run: cargo hack check --each-feature
5353

54+
build:
55+
needs: [check, style]
56+
runs-on: ubuntu-latest
57+
58+
permissions:
59+
contents: read
60+
61+
steps:
62+
- name: Checkout the code
63+
uses: actions/checkout@v4
64+
- uses: dtolnay/rust-toolchain@stable
65+
with:
66+
toolchain: ${{ env.RUST_TOOLCHAIN }}
67+
- name: Setup Rust cache
68+
uses: Swatinem/rust-cache@v2
69+
70+
- name: Run cargo build
71+
run: cargo build --release
5472
test:
5573
needs: [check, style]
5674
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)