setup github workflow file (first test)

This commit is contained in:
FantasyPvP
2023-11-30 19:47:17 +00:00
parent 2d6f187433
commit f022d85b8a
2 changed files with 11 additions and 6 deletions
+9 -6
View File
@@ -12,10 +12,13 @@ env:
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/fantasypvp/crystalos_builder:latest
credentials:
username: FantasyPvP
password: ${{ secrets.DOCKER_CONTAINER_REGISTRY_TOKEN }}
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
+2
View File
@@ -20,3 +20,5 @@ RUN cargo install bootimage
COPY . .
RUN cargo update -p proc-macro2
CMD ["cargo", "build", "--release", "--verbose"]