setup github workflow file (first test)
This commit is contained in:
@@ -12,10 +12,13 @@ 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:
|
||||||
- run: cargo build --release
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build Docker Image
|
||||||
|
run: docker build -t crystal-os .
|
||||||
|
|
||||||
|
- name: Run Build in Docker Container
|
||||||
|
run: docker run --rm crystal-os
|
||||||
|
|||||||
@@ -20,3 +20,5 @@ RUN cargo install bootimage
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cargo update -p proc-macro2
|
RUN cargo update -p proc-macro2
|
||||||
|
|
||||||
|
CMD ["cargo", "build", "--release", "--verbose"]
|
||||||
|
|||||||
Reference in New Issue
Block a user