Compare commits
7 Commits
32548373d9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7144c12a4 | ||
|
|
b59c03d8bd | ||
|
|
e4642110eb | ||
|
|
a128d982e9 | ||
|
|
dec645d074 | ||
| b4b3ece96f | |||
|
|
f55bb6e897 |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
|||||||
ko_fi: hecrj_
|
|
||||||
44
.github/workflows/test.yml
vendored
44
.github/workflows/test.yml
vendored
@@ -1,44 +0,0 @@
|
|||||||
name: Test
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: '*'
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *'
|
|
||||||
jobs:
|
|
||||||
setup:
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
||||||
rust: [stable, nightly]
|
|
||||||
include:
|
|
||||||
- os: macOS-latest
|
|
||||||
rust: stable
|
|
||||||
components: rustfmt, clippy
|
|
||||||
targets: x86_64-apple-darwin
|
|
||||||
- os: windows-latest
|
|
||||||
rust: stable
|
|
||||||
components: rustfmt, clippy
|
|
||||||
targets: x86_64-pc-windows-msvc
|
|
||||||
- os: ubuntu-latest
|
|
||||||
rust: stable
|
|
||||||
components: rustfmt, clippy
|
|
||||||
targets: x86_64-unknown-linux-musl
|
|
||||||
steps:
|
|
||||||
- uses: hecrj/setup-rust-action@master
|
|
||||||
with:
|
|
||||||
rust-version: ${{ matrix.rust }}
|
|
||||||
components: ${{ matrix.components || '' }}
|
|
||||||
targets: ${{ matrix.targets || '' }}
|
|
||||||
- name: Check cargo availability
|
|
||||||
run: cargo --version
|
|
||||||
- name: Check rustup default toolchain
|
|
||||||
run: rustup default | grep '${{ matrix.rust }}'
|
|
||||||
- name: Check rustfmt and clippy are available on MacOS
|
|
||||||
if: matrix.os == 'macOS-latest' && matrix.rust == 'stable'
|
|
||||||
run: |
|
|
||||||
cargo fmt --version
|
|
||||||
cargo clippy --version
|
|
||||||
- name: Check targets are installed correctly
|
|
||||||
if: matrix.rust == 'stable'
|
|
||||||
run: rustup target list --installed | grep '${{ matrix.targets }}'
|
|
||||||
4
setup.sh
4
setup.sh
@@ -2,8 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none --profile minimal
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none --profile minimal
|
||||||
PATH="$HOME/.cargo/bin:$PATH"
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
args=()
|
args=()
|
||||||
|
|
||||||
# shellcheck disable=SC2206
|
# shellcheck disable=SC2206
|
||||||
|
|||||||
Reference in New Issue
Block a user