Skip to content

Commit

Permalink
Apply .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ljy2855 committed Nov 25, 2024
1 parent 2970ada commit fa486c8
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @CSPCLAB/pintos-study
43 changes: 43 additions & 0 deletions .github/workflows/pintos-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Pintos Docker Build and Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
# 1. Checkout the repository
- name: Checkout code
uses: actions/checkout@v3

# 2. Set up Docker Buildx
- name: Setup Docker BuildX
uses: docker/setup-buildx-action@v3

# 3. Build the Docker image
- name: Build Pintos Docker Image
run: |
docker buildx build \
--platform linux/amd64 \
--tag pintos-build:latest \
--load \
.
# 4. Run Pintos build inside the container
- name: Run Pintos Build Checks
run: |
docker run --rm \
-v ${{ github.workspace }}:/pintos \
-w /pintos \
pintos-build:latest \
bash -c "
cd src/threads && make clean && make &&
cd ../userprog && make clean && make &&
cd ../filesys && make clean && make"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ Mkfile.old
dkms.conf

# End of https://www.toptal.com/developers/gitignore/api/c

# Docker
docker-compose.yaml
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dockerfile
FROM thierrysans/pintos

# Set working directory
WORKDIR /pintos

# Ensure the interactive session doesn't time out
RUN echo 'export TMOUT=0' >> ~/.bashrc
11 changes: 0 additions & 11 deletions docker-compose.yaml

This file was deleted.

0 comments on commit fa486c8

Please sign in to comment.