Skip to content

Commit d28f8b3

Browse files
committed
Consolidate CI scripts into one
1 parent 9deb086 commit d28f8b3

File tree

4 files changed

+78
-105
lines changed

4 files changed

+78
-105
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: "Build Installers"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Ubuntu version of the runner'
8+
required: true
9+
default: 'noble'
10+
type: choice
11+
options:
12+
- jammy
13+
- noble
14+
15+
arch:
16+
description: 'Architecture of the runner'
17+
required: true
18+
default: 'amd64'
19+
type: choice
20+
options:
21+
- amd64
22+
- arm64
23+
24+
pull_request:
25+
branches:
26+
- main
27+
paths:
28+
- bin/install-vulkan
29+
30+
jobs:
31+
manual-build:
32+
if: github.event_name == 'workflow_dispatch'
33+
strategy:
34+
matrix:
35+
test_name: [vulkan]
36+
name: "Manual Build - ${{ matrix.test_name }}"
37+
runs-on: [self-hosted, linux, "${{ inputs.arch }}", "${{ inputs.version }}"]
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
- name: Run install-${{ matrix.test_name }}
44+
shell: bash
45+
run: bin/install-${{ matrix.test_name }}
46+
47+
- name: Upload artifacts
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: "output-${{ matrix.test_name }}-\
51+
${{ inputs.arch }}-${{ inputs.version }}"
52+
path: /usr/local/checkbox-gfx/*
53+
54+
pr-build:
55+
if: github.event_name == 'pull_request'
56+
strategy:
57+
matrix:
58+
arch: [amd64, arm64]
59+
test_name: [vulkan]
60+
name: "Installer testing"
61+
runs-on: [self-hosted, linux, "${{ matrix.arch }}", noble]
62+
63+
steps:
64+
- name: "Installers - ${{ matrix.test_name }} - ${{ matrix.arch }}"
65+
run: echo "Running ${{ matrix.test_name }} ${{ matrix.arch }} install"
66+
67+
- name: Checkout repository
68+
uses: actions/checkout@v4
69+
70+
- name: Run install-${{ matrix.test_name }}
71+
shell: bash
72+
run: bin/install-${{ matrix.test_name }}
73+
74+
- name: Upload artifacts
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: output-${{ matrix.test_name }}-${{ matrix.arch }}
78+
path: /usr/local/checkbox-gfx/*

contrib/checkbox-gfx/.github/workflows/build-vulkan-on-pr-arm.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

contrib/checkbox-gfx/.github/workflows/build-vulkan-on-pr.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

contrib/checkbox-gfx/.github/workflows/build-vulkan.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)