diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b4a245..e326438 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index df315e9..0eee323 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,3 @@ -cargo-features = ["edition2021"] - [package] name = "bliss-analyser" version = "0.2.1" diff --git a/docker/Dockerfile b/docker/Dockerfile index f45577f..7f0add3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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