-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 798 Bytes
/
c-cpp.yml
File metadata and controls
30 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: OSDev CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and test KenOS
runs-on: ubuntu-latest
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
GITHUB_DIR: ${{ github.workspace }}
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin
docker pull memegauste/kenos-build:alphadocker
docker run -w $GITHUB_DIR -v $GITHUB_DIR:$GITHUB_DIR memegauste/kenos-build:alphadocker /bin/bash -c "make -j$(nproc) -k"
- uses: actions/upload-artifact@v4
name: Upload current KenOS build
with:
name: kenos.iso
path: ./kenos.iso