Merge branch 'main' of https://github.com/FantasyPvP/CrystalOS
This commit is contained in:
@@ -11,10 +11,11 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/fantasypvp/crystalos_builder:latest
|
||||||
|
credentials:
|
||||||
|
username: FantasyPvP
|
||||||
|
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- run: cargo build --release
|
||||||
- name: Build
|
|
||||||
run: cargo build --verbose
|
|
||||||
|
|||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y curl
|
||||||
|
RUN apt-get install build-essential -y
|
||||||
|
|
||||||
|
RUN mkdir /src
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||||
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
|
|
||||||
|
RUN rustup toolchain install nightly
|
||||||
|
RUN rustup install nightly-2023-08-18
|
||||||
|
RUN rustup override set nightly
|
||||||
|
RUN rustup default nightly
|
||||||
|
RUN rustup component add llvm-tools-preview --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
|
RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
|
||||||
|
RUN cargo install bootimage
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN cargo update -p proc-macro2
|
||||||
Reference in New Issue
Block a user