Skip to content

Commit

Permalink
create job to push bin as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Nov 9, 2023
1 parent e5f532b commit 5256e09
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml

This file was deleted.

25 changes: 23 additions & 2 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
toolchain: stable

- name: Step 3 - Run cargo check
run: mv .env.example .env && rm -rf .cargo && cargo check
run: mv .env.example .env && cargo check

fmt:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,4 +45,25 @@ jobs:
toolchain: stable

- name: Step 3 - Run cargo clippy
run: mv .env.example .env && rm -rf .cargo && cargo clippy
run: mv .env.example .env && cargo clippy

create-bin:
runs-on: ubuntu-latest
needs: check
steps:
- name: Step 1 - Check out main branch
uses: actions/checkout@v3

- name: Step 2 - Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Step 3 - Run cargo build
run: cargo build --release

- name: Step 4 - Publish binary as artifacts
uses: actions/upload-artifact@v3
with:
name: starkwhale_alert
path: target/release/starkwhale_alert
1 change: 0 additions & 1 deletion crates/starkwhale-alert/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mod logger;
mod starknet_id;
mod twitter;

// TODO Add a job to create the executable on ubuntu
// TODO If no block file ==> create one with latest

#[tokio::main]
Expand Down

0 comments on commit 5256e09

Please sign in to comment.