Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6743a808b9 | ||
|
|
b2116332ed | ||
|
|
ad3c350707 | ||
|
|
f4937514dd | ||
|
|
04f0c03db7 | ||
|
|
c810a85da0 | ||
|
|
936f07ad01 | ||
|
|
156ab957fd | ||
|
|
ef6eba61a7 | ||
|
|
59a5e1f678 | ||
|
|
e240276db7 | ||
|
|
c4f27e924d | ||
|
|
42fc92925d |
@@ -0,0 +1,37 @@
|
|||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Customize the profile here (e.g., release, debug)
|
||||||
|
PROFILE: release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest # Only target ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
override: true
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --release # Or --debug, depending on the env.PROFILE
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: test
|
||||||
|
args: --release # Or --debug, depending on the env.PROFILE
|
||||||
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
image: rust:1.85
|
||||||
|
script:
|
||||||
|
- cargo build --release
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- target/release/clean_file
|
||||||
|
expire_in: 1 week
|
||||||
|
cache:
|
||||||
|
key: "cargo-cache"
|
||||||
|
paths:
|
||||||
|
- target/
|
||||||
|
- ~/.cargo/
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
image: rust:1.85
|
||||||
|
script:
|
||||||
|
- cargo test
|
||||||
|
cache:
|
||||||
|
key: "cargo-cache"
|
||||||
|
paths:
|
||||||
|
- target/
|
||||||
|
- ~/.cargo/
|
||||||
+5
-4
@@ -1,10 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "clean_file"
|
name = "clean_file"
|
||||||
version = "0.2.0"
|
description = "Software tool that sanitizes a list of phone numbers"
|
||||||
edition = "2021"
|
version = "0.3.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = { version = "1.0.203", features = ["derive"] }
|
serde = { version = "1.0.218", features = ["derive"] }
|
||||||
serde_json = "1.0.117"
|
serde_json = "1.0.140"
|
||||||
|
|||||||
Reference in New Issue
Block a user