-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (35 loc) · 1.28 KB
/
main.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
name: Continuous Integration
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [i686, x86_64]
fail-fast: false
env:
ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
- name: Install toolchain dependencies
run: sudo apt-get -qy install bison flex libgmp-dev libmpfr-dev libmpc-dev texinfo grub-pc-bin xorriso mtools
- name: Set PATH
run: echo ~/dennix-toolchain/bin >> $GITHUB_PATH
- name: Check for toolchain versions
run: echo "$(git ls-remote https://github.com/dennis95/dennix-binutils.git HEAD | cut -c 1-40)-$(git ls-remote https://github.com/dennis95/dennix-gcc.git HEAD | cut -c 1-40)" > toolchain-commit
- name: Cache cross toolchain
uses: actions/cache@v2
id: cache
with:
path: ~/dennix-toolchain
key: toolchain-${{ matrix.arch }}-${{ hashFiles('toolchain-commit') }}
- name: Install cross toolchain
if: steps.cache.outputs.cache-hit != 'true'
run: make install-toolchain
- name: Build
run: make
- name: Upload iso image
uses: actions/upload-artifact@v3
with:
name: dennix-${{ matrix.arch }}
path: dennix.iso