edition2021 requires nightly

This commit is contained in:
CDrummond 2022-06-13 12:47:57 +01:00
parent de2c2dfaa3
commit cf0e6cf5fb
3 changed files with 7 additions and 2 deletions

View File

@ -66,6 +66,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v1
- name: Enable 2021 edition
run: |
echo 'cargo-features = ["edition2021"]' > /tmp/bliss-analyser-Cargo.toml
cat Cargo.toml >> /tmp/bliss-analyser-Cargo.toml
mv /tmp/bliss-analyser-Cargo.toml Cargo.toml
- name: Build
run: |
docker run --rm -v $(pwd):/source dlecan/rust-crosscompiler-arm:stable

View File

@ -1,5 +1,3 @@
cargo-features = ["edition2021"]
[package]
name = "bliss-analyser"
version = "0.2.1"

View File

@ -12,6 +12,7 @@ RUN apt-get install -y curl git build-essential gcc-multilib musl-tools musl-dev
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin/:${PATH}"
RUN rustup default nightly && rustup update
RUN rustup target add aarch64-unknown-linux-gnu && \
rustup target add arm-unknown-linux-gnueabihf