mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-22 13:24:28 +02:00
CI: Add Github Action
This commit is contained in:
parent
4e21e947fc
commit
7a2748585c
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -1,5 +1,6 @@
|
|||||||
* text eol=crlf
|
* text eol=crlf
|
||||||
*.up -text
|
*.up -text
|
||||||
*.UP -text
|
*.UP -text
|
||||||
travis_*.sh text eol=lf
|
ci_*.sh text eol=lf
|
||||||
.travis.yml text eol=lf
|
.travis.yml text eol=lf
|
||||||
|
.github/workflows/*.yml text eol=lf
|
||||||
|
40
.github/workflows/ci-build.yml
vendored
Normal file
40
.github/workflows/ci-build.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: Build / Test / Upload snapshot
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Package install
|
||||||
|
run: |
|
||||||
|
sudo add-apt-repository ppa:tkchia/build-ia16
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install gcc-ia16-elf nasm upx
|
||||||
|
|
||||||
|
- 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
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: ${{ steps.snapshotname.outputs.fname }}
|
||||||
|
path: _output/K*.???
|
@ -16,10 +16,10 @@ before_install:
|
|||||||
- echo "before_install"
|
- echo "before_install"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ./travis_build.sh
|
- ./ci_build.sh
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- echo "before_script"
|
- echo "before_script"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./travis_test.sh
|
- ./ci_test.sh
|
||||||
|
@ -18,7 +18,7 @@ mv -i bin/KGC*.map bin/KGC*.sys _output/.
|
|||||||
|
|
||||||
# Watcom
|
# Watcom
|
||||||
if [ ! -d _watcom ] ; then
|
if [ ! -d _watcom ] ; then
|
||||||
[ -f ow-snapshot.tar.gz ] || wget https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.gz
|
[ -f ow-snapshot.tar.gz ] || wget --quiet https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/ow-snapshot.tar.gz
|
||||||
|
|
||||||
mkdir _watcom
|
mkdir _watcom
|
||||||
(cd _watcom && tar -xf ../ow-snapshot.tar.gz)
|
(cd _watcom && tar -xf ../ow-snapshot.tar.gz)
|
||||||
@ -30,3 +30,5 @@ export WATCOM=$TRAVIS_BUILD_DIR/_watcom
|
|||||||
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
git clean -x -d -f -e _output -e _watcom -e ow-snapshot.tar.gz
|
||||||
make all COMPILER=owlinux
|
make all COMPILER=owlinux
|
||||||
mv -i bin/KWC*.map bin/KWC*.sys _output/.
|
mv -i bin/KWC*.map bin/KWC*.sys _output/.
|
||||||
|
|
||||||
|
echo done
|
Loading…
x
Reference in New Issue
Block a user