diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a4bf63c..6da5a1f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -43,9 +43,8 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v14.1 - with: - nix_path: nixpkgs=channel:nixos-unstable - - - run: nix-shell - - run: cargo build + - run: | + docker run -v $GITHUB_WORKSPACE:/mnt -w /mnt ghcr.io/toltec-dev/rust:latest bash -c ' + source /opt/x-tools/switch-arm.sh + cargo build --release --target=armv7-unknown-linux-gnueabihf + ' diff --git a/README.md b/README.md index 0b094ef..f3cdc05 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,11 @@ There are three ways of building the required restream binary for streaming the You can use the [toltec toolchain docker images](https://github.com/toltec-dev/toolchain) to build a restream binary compatible with the reMarkable. ``` - docker run --rm -v $(pwd):/project -v /project/.cargo -w "/project" ghcr.io/toltec-dev/rust:latest cargo build --release --target=armv7-unknown-linux-gnueabihf + docker run --rm -v "$(pwd)":/project -v /project/.cargo -w /project \ + ghcr.io/toltec-dev/rust:latest bash -c ' + source /opt/x-tools/switch-arm.sh + cargo build --release --target=armv7-unknown-linux-gnueabihf + ' ``` - **Using the reMarkable toolchain:**