-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from oramasearch/fix-ci
Update rust.yml
- Loading branch information
Showing
6 changed files
with
115 additions
and
5,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: apt-get update | ||
run: sudo apt-get update | ||
- name: apt-get install | ||
run: | | ||
sudo apt-get install -y libssl3 pkg-config libssl-dev g++ build-essential ca-certificates | ||
- name: Set up cargo cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: cargo- | ||
- name: Install target | ||
run: rustup target add x86_64-unknown-linux-gnu | ||
- name: Environment | ||
run: | | ||
gcc --version | ||
g++ --version | ||
rustc --version | ||
cargo --version | ||
- name: Build | ||
run: | | ||
cargo check --target x86_64-unknown-linux-gnu | ||
cargo fmt -- --check | ||
cargo clippy --target x86_64-unknown-linux-gnu -- -D warnings | ||
cargo build --target x86_64-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Rust | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: apt-get update | ||
run: sudo apt-get update | ||
- name: apt-get install | ||
run: | | ||
sudo apt-get install -y libssl3 pkg-config libssl-dev g++ build-essential ca-certificates | ||
- name: Set up cargo cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: cargo- | ||
- name: Install target | ||
run: rustup target add x86_64-unknown-linux-gnu | ||
- name: Environment | ||
run: | | ||
gcc --version | ||
g++ --version | ||
rustc --version | ||
cargo --version | ||
- name: Build | ||
run: | | ||
cargo build --release --target x86_64-unknown-linux-gnu -p rustorama | ||
ls -lha target/ | ||
ls -lha target/x86_64-unknown-linux-gnu | ||
ls -lha target/x86_64-unknown-linux-gnu/release | ||
- name: Upload Linux x86_64-unknown-linux-gnu | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./target/x86_64-unknown-linux-gnu/release/rustorama | ||
asset_name: rustorama-linux-x86_64-unknown-linux-gnu |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/target | ||
|
||
|
||
posting_storage | ||
.idea | ||
.idea | ||
|
||
Cargo.lock |
Oops, something went wrong.