kernel/.github/workflows/ci-build.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2021-01-14 13:25:02 +01:00
name: Build
2021-01-09 01:00:25 +01:00
on:
2021-01-14 13:25:02 +01:00
pull_request:
types:
- opened
- edited
- ready_for_review
- reopened
- synchronize
2021-01-09 01:00:25 +01:00
push:
jobs:
build:
2021-01-14 13:25:02 +01:00
if: contains(github.event.head_commit.message, '[skip ci]') == false
2021-01-09 01:00:25 +01:00
runs-on: ubuntu-20.04
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
2021-01-09 01:00:25 +01:00
- name: Package install
run: |
sudo add-apt-repository ppa:tkchia/build-ia16
sudo apt update
sudo apt install gcc-ia16-elf libi86-ia16-elf nasm upx
2021-01-09 01:00:25 +01:00
- name: build
run: ./ci_build.sh
- name: test
run: ./ci_test.sh
- name: make snapshot name
id: snapshotname
run: |
(
today=`date -u +%F | tr '\n' '-'`
s_sha=`echo -n ${GITHUB_SHA} | cut -c1-8`
printf '::set-output name=fname::snapshot-%s%s\n' $today $s_sha
)
- name: upload
2021-01-14 13:25:02 +01:00
if: github.repository == 'FDOS/kernel' &&
(github.event_name == 'push' || github.event.pull_request.merged == true)
2021-01-09 01:00:25 +01:00
uses: actions/upload-artifact@v2
with:
name: ${{ steps.snapshotname.outputs.fname }}
path: _output/*/*.???