Create rust_x86_build.yml

migrate
Vladislav Drozdov 2025-05-12 18:18:30 +03:00 committed by GitHub
parent 71e9e8c032
commit fac74663fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 37 additions and 0 deletions

37
.github/workflows/rust_x86_build.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Rust x86_64 build
on:
push:
branches: [ master , rc ]
pull_request:
branches: [ master , rc ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config build-essential
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build x86_64-unknown-linux-gnu
run: cargo x86_64 --verbose