Compare commits

..

No commits in common. "c43ac46214bc625f129cdb89117cb71b86906369" and "0bbe32f178707f5330ad0801ce66af97bb5d8167" have entirely different histories.

4 changed files with 18 additions and 10 deletions

View File

@ -3,9 +3,9 @@ name: Build and publish container images
on: on:
workflow_dispatch: { } workflow_dispatch: { }
push: # push:
branches: # branches:
- master # - master
jobs: jobs:
build-and-publish: build-and-publish:

View File

@ -3,9 +3,9 @@ name: Build container images
on: on:
workflow_dispatch: { } workflow_dispatch: { }
# push: push:
# branches: branches:
# - master - master
jobs: jobs:
build: build:

View File

@ -1,12 +1,12 @@
ARG NODE_VERSION=20 ARG NODE_VERSION=20
ARG RUST_TOOLCHAIN=""
FROM node:${NODE_VERSION} FROM node:${NODE_VERSION}
ENV CARGO_HOME=/usr/local/cargo ENV CARGO_HOME=/usr/local/cargo
ENV RUSTUP_HOME=/usr/local/rustup ENV RUSTUP_HOME=/usr/local/rustup
ENV PATH=/usr/local/cargo/bin:$PATH ENV PATH=/usr/local/cargo/bin:$PATH
ENV PKG_CONFIG_SYSROOT_DIR=/
RUN apt update && apt upgrade -y RUN apt update && apt upgrade -y
RUN apt install -y g++-mingw-w64-x86-64 \ RUN apt install -y g++-mingw-w64-x86-64 \
@ -22,3 +22,13 @@ ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \ ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \ CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc \
CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++ CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++
RUN if test "${RUST_TOOLCHAIN}x" != "x" ; \
then rustup toolchain install $RUST_TOOLCHAIN ; \
fi
RUN rustup target add x86_64-pc-windows-gnu
RUN rustup target add x86_64-unknown-linux-gnu
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN rustup target add aarch64-unknown-linux-gnu
RUN rustup target add wasm32-unknown-unknown

View File

@ -33,7 +33,5 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build - name: Build
run: | run: cargo build --target ${{ matrix.rust-target }}
rustup target add ${{ matrix.rust-target }}
cargo build --target ${{ matrix.rust-target }}
``` ```