ci: use nightly Rust

This commit is contained in:
Ronny Chan 2023-01-15 15:23:19 -05:00 committed by GitHub
parent 219b4d9ef8
commit d2bec2fb3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,12 @@
name: Rust name: Build
on: on:
push: push:
branches: [ "master" ] branches: [ "master" ]
pull_request: pull_request:
branches: [ "master" ] branches: [ "master" ]
schedule:
- cron: "0 0 * * 6"
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -17,13 +18,18 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install nightly
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: nightly
override: true
- name: Setup cargo post - name: Setup cargo post
uses: baptiste0928/cargo-install@bf6758885262d0e6f61089a9d8c8790d3ac3368f uses: baptiste0928/cargo-install@bf6758885262d0e6f61089a9d8c8790d3ac3368f
with: with:
crate: cargo-post crate: cargo-post
- name: Build dynamic library - name: Build dynamic library
run: cargo post build --release --package librashader-capi run: cargo post build --release --package librashader-capi
- name: Upload a Build Artifact - name: Upload build artifacts
uses: actions/upload-artifact@v3.1.2 uses: actions/upload-artifact@v3.1.2
with: with:
name: build-outputs name: build-outputs