Rust 2021?

This commit is contained in:
CDrummond committed 2022-06-13 13:08:18 +01:00
1 parent a12971df17
commit 074be07d18
3 files changed
+2 -12

No files matched your search

+1 -10
View File
@@ -66,18 +66,9 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Docker setup
run: |
docker run --rm -v $(pwd):/source dlecan/rust-crosscompiler-arm:stable
- 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 - name: Build
run: | run: |
docker run --rm -v $(pwd):/source dlecan/rust-crosscompiler-arm:stable
docker build -t bliss-analyser-cross - < docker/Dockerfile docker build -t bliss-analyser-cross - < docker/Dockerfile
docker run --rm -v $PWD/target:/build -v $PWD:/src bliss-analyser-cross docker run --rm -v $PWD/target:/build -v $PWD:/src bliss-analyser-cross
+1 -1
View File
@@ -2,7 +2,7 @@
name = "bliss-analyser" name = "bliss-analyser"
version = "0.2.1" version = "0.2.1"
authors = ["Craig Drummond <craig.p.drummond@gmail.com>"] authors = ["Craig Drummond <craig.p.drummond@gmail.com>"]
edition = "2018" edition = "2021"
license = "GPL-3.0-only" license = "GPL-3.0-only"
description = "Analyse audio files with bliss-rs" description = "Analyse audio files with bliss-rs"
repository = "https://github.com/CDrummond/bliss-analyser" repository = "https://github.com/CDrummond/bliss-analyser"
-1
View File
@@ -12,7 +12,6 @@ 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 RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin/:${PATH}" ENV PATH="/root/.cargo/bin/:${PATH}"
RUN rustup default nightly && rustup update
RUN rustup target add aarch64-unknown-linux-gnu && \ RUN rustup target add aarch64-unknown-linux-gnu && \
rustup target add arm-unknown-linux-gnueabihf rustup target add arm-unknown-linux-gnueabihf