Skip to content

Commit

Permalink
Update ci (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonarddeR authored Aug 31, 2023
1 parent 0565ad1 commit 0bb3517
Showing 1 changed file with 53 additions and 64 deletions.
117 changes: 53 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,53 @@
name: CI

on:
pull_request:
push:
branches:
- master
tags:
- "v*.*.*"
jobs:
style:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
profile: minimal
override: true
- name: cargo fmt -- --check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

build:
name: Build
runs-on: windows-latest
strategy:
matrix:
include:
- target: i686-pc-windows-msvc
suffix: x86
- target: x86_64-pc-windows-msvc
suffix: x64
- target: aarch64-pc-windows-msvc
suffix: arm64
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Build target
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rd_pipe-${{ matrix.suffix }}
path: |
./target/${{ matrix.target }}/release/*.dll*
./target/${{ matrix.target }}/release/*.pdb
name: CI

on:
pull_request:
push:
branches:
- master
tags:
- "v*.*.*"
jobs:
style:
name: Check Style
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- name: cargo fmt -- --check
run: cargo fmt --all -- --check
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
include:
- target: i686-pc-windows-msvc
suffix: x86
- target: x86_64-pc-windows-msvc
suffix: x64
- target: aarch64-pc-windows-msvc
suffix: arm64
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Build target
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: rd_pipe-${{ matrix.suffix }}
path: |
./target/${{ matrix.target }}/release/*.dll*
./target/${{ matrix.target }}/release/*.pdb

0 comments on commit 0bb3517

Please sign in to comment.