From 4bc2b56ef30348f6aff24271ae4982f9f538eb78 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Thu, 2 Nov 2023 23:26:00 -0700 Subject: [PATCH] dot instead of source; readme --- Dockerfile | 2 +- readme.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 readme.md diff --git a/Dockerfile b/Dockerfile index ae1bc6b..ba789fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt install -y g++-mingw-w64-x86-64 \ g++-aarch64-linux-gnu libc6-dev-arm64-cross RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y -RUN source "$HOME/.cargo/env" +RUN . "$HOME/.cargo/env" ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \ CC_armv7_unknown_Linux_gnueabihf=arm-linux-gnueabihf-gcc \ diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..afdf418 --- /dev/null +++ b/readme.md @@ -0,0 +1,34 @@ + +Container image with Node20 and Rust, primarily for CI Rust build steps + +--- + +```yaml +name: Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: + image: gitea.jbrumond.me/images/rust-ci:latest + strategy: + matrix: + rust-target: + - x86_64-pc-windows-gnu + - armv7-unknown-linux-gnueabihf + - aarch64-unknown-linux-gnu + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Build + run: cargo build --target ${{ matrix.rust-target }} +```