Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add compilation checks #44

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
请附上一个本PR所解决问题的简介

Fixes # (issue)

24 changes: 24 additions & 0 deletions .github/workflows/lab1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab1

on:
push:
paths:
- Lab1/**
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
container:
image: ipads/oslab:24.09
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Build Lab1
run: Scripts/gendeps.sh && cd Lab1 && make
24 changes: 24 additions & 0 deletions .github/workflows/lab2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab2

on:
push:
paths:
- Lab2/**
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
container:
image: ipads/oslab:24.09
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Build Lab2
run: Scripts/gendeps.sh && cd Lab2 && make
24 changes: 24 additions & 0 deletions .github/workflows/lab3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab3

on:
push:
paths:
- Lab3/**
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
container:
image: ipads/oslab:24.09
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Build Lab3
run: Scripts/gendeps.sh && cd Lab3 && make
24 changes: 24 additions & 0 deletions .github/workflows/lab4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab4

on:
push:
paths:
- Lab4/**
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
container:
image: ipads/oslab:24.09
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Build Lab4
run: Scripts/gendeps.sh && cd Lab4 && make
24 changes: 24 additions & 0 deletions .github/workflows/lab5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lab5

on:
push:
paths:
- Lab5/**
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
container:
image: ipads/oslab:24.09
options: --user 1001
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Build Lab5
run: Scripts/gendeps.sh && cd Lab5 && make