Skip to content

Commit

Permalink
Workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ogxd committed May 15, 2024
1 parent c789239 commit 7229316
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/rust_version.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Rust Version Compatibility

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand All @@ -18,20 +15,14 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ["1.65", "1.72", "1.78", "1.79"]
version: ["1.65", "1.72", "1.78"]

steps:
- uses: actions/checkout@v3

- name: Install ${{ matrix.version }}
run: rustup toolchain install ${{ matrix.version }}

- name: Rust version
run: cargo rustc -- --version

- name: Build
# RUSTFLAGS="-C target-cpu=native --cfg hybrid"
run: RUSTFLAGS="-C target-cpu=native" cargo +${{ matrix.version }} build --release

- name: Test
run: RUSTFLAGS="-C target-cpu=native" cargo +${{ matrix.version }} test --release --lib
run: RUSTFLAGS="-C target-cpu=native" cargo +${{ matrix.version }} build --release

0 comments on commit 7229316

Please sign in to comment.