-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @CSPCLAB/pintos-study |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,6 @@ Mkfile.old | |
dkms.conf | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/c | ||
|
||
# Docker | ||
docker-compose.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.