This commit is contained in:
42
.github/workflows/ci-build.yml
vendored
42
.github/workflows/ci-build.yml
vendored
@@ -1,37 +1,31 @@
|
||||
name: Build
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
jobtype:
|
||||
required: true
|
||||
type: string
|
||||
subtype:
|
||||
required: true
|
||||
type: string
|
||||
runtype:
|
||||
required: true
|
||||
type: string
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- ready_for_review
|
||||
- reopened
|
||||
- synchronize
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: contains(github.event.head_commit.message, '[skip ci]') == false
|
||||
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: package install
|
||||
run: ./ci_prereq.sh
|
||||
|
||||
- name: build
|
||||
env:
|
||||
JOBTYPE: ${{ inputs.jobtype }}
|
||||
SUBTYPE: ${{ inputs.subtype }}
|
||||
RUNTYPE: ${{ inputs.runtype }}
|
||||
run: ./ci_build.sh
|
||||
|
||||
- name: cache binaries
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: test-binaries
|
||||
with:
|
||||
@@ -40,23 +34,13 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
||||
|
||||
- name: Enable KVM group perms
|
||||
run: |
|
||||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger --name-match=kvm
|
||||
|
||||
- name: test
|
||||
id: test
|
||||
env:
|
||||
JOBTYPE: ${{ inputs.jobtype }}
|
||||
SUBTYPE: ${{ inputs.subtype }}
|
||||
RUNTYPE: ${{ inputs.runtype }}
|
||||
run: ./ci_test.sh
|
||||
|
||||
- name: upload failure logs
|
||||
if: ${{ always() && (steps.test.outcome == 'failure') }}
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: failure-logs
|
||||
path: test_*
|
||||
|
||||
12
.github/workflows/ci-manual-asan.yml
vendored
12
.github/workflows/ci-manual-asan.yml
vendored
@@ -1,12 +0,0 @@
|
||||
name: Manual ASAN
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
manual_asan:
|
||||
name: Manual (ASAN)
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'manual'
|
||||
subtype: 'asan'
|
||||
runtype: 'simple'
|
||||
12
.github/workflows/ci-manual-full.yml
vendored
12
.github/workflows/ci-manual-full.yml
vendored
@@ -1,12 +0,0 @@
|
||||
name: Manual FULL
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
manual_full:
|
||||
name: Manual (FULL)
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'manual'
|
||||
subtype: ''
|
||||
runtype: 'full'
|
||||
12
.github/workflows/ci-manual-normal.yml
vendored
12
.github/workflows/ci-manual-normal.yml
vendored
@@ -1,12 +0,0 @@
|
||||
name: Manual Normal
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
manual_normal:
|
||||
name: Manual (Normal)
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'manual'
|
||||
subtype: ''
|
||||
runtype: 'normal'
|
||||
73
.github/workflows/ci-master.yml
vendored
73
.github/workflows/ci-master.yml
vendored
@@ -1,73 +0,0 @@
|
||||
name: Master
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '23 23 * * 0' # 23:23 Every Sunday
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
push:
|
||||
|
||||
jobs:
|
||||
# scheduled_asan:
|
||||
# name: Scheduled (ASAN)
|
||||
# if: (github.event_name == 'schedule' &&
|
||||
# github.repository_owner == 'dosemu2')
|
||||
|
||||
# uses: ./.github/workflows/ci-build.yml
|
||||
# with:
|
||||
# jobtype: 'schedule'
|
||||
# subtype: 'asan'
|
||||
# runtype: 'simple'
|
||||
|
||||
scheduled_full:
|
||||
name: Scheduled (FULL)
|
||||
if: (github.event_name == 'schedule' &&
|
||||
github.repository_owner == 'dosemu2')
|
||||
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'schedule'
|
||||
subtype: ''
|
||||
runtype: 'full'
|
||||
|
||||
triggered:
|
||||
name: Triggered
|
||||
if: (github.event_name != 'schedule' &&
|
||||
contains(github.event.head_commit.message, '[skip ci]') == false &&
|
||||
contains(github.event.head_commit.message, '[full ci]') == false &&
|
||||
contains(github.event.head_commit.message, '[asan ci]') == false)
|
||||
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'triggered'
|
||||
subtype: ''
|
||||
runtype: 'normal'
|
||||
|
||||
triggered_asan:
|
||||
name: Triggered (ASAN)
|
||||
if: (github.event_name != 'schedule' &&
|
||||
contains(github.event.head_commit.message, '[skip ci]') == false &&
|
||||
contains(github.event.head_commit.message, '[full ci]') == false &&
|
||||
contains(github.event.head_commit.message, '[asan ci]') == true)
|
||||
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'triggered'
|
||||
subtype: 'asan'
|
||||
runtype: 'simple'
|
||||
|
||||
triggered_full:
|
||||
name: Triggered (FULL)
|
||||
if: (github.event_name != 'schedule' &&
|
||||
contains(github.event.head_commit.message, '[skip ci]') == false &&
|
||||
contains(github.event.head_commit.message, '[full ci]') == true &&
|
||||
contains(github.event.head_commit.message, '[asan ci]') == false)
|
||||
|
||||
uses: ./.github/workflows/ci-build.yml
|
||||
with:
|
||||
jobtype: 'triggered'
|
||||
subtype: ''
|
||||
runtype: 'full'
|
||||
Reference in New Issue
Block a user