authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-11-25 22:28:36+01:00
committergravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-11-25 22:28:36+01:00
loga2403d354fa3f93aa4b916f574393c12dff39e51
treeb101aaaac3e95c490229f417a4d993bd85c4b648
parent5b9d0a446af4e74c9f915a34b39de83d9b2335f9

ci: remove manual run feature


1 files changed, 0 insertions(+), 92 deletions(-)

.github/workflows/ci.yaml-92
......@@ -1,39 +1,5 @@
11name: ci
2run-name: ${{ inputs.commit }}
32on:
4 workflow_dispatch:
5 # Allows launching a CI run on an arbitrary commit
6 # and also specify only a subset of the targets to test
7 inputs:
8 commit:
9 description: "master branch commit to build"
10 required: true
11 default: 'HEAD'
12 type: string
13 x86_64_linux_debug:
14 required: false
15 default: true
16 type: boolean
17 x86_64_linux_release:
18 required: false
19 default: true
20 type: boolean
21 x86_64_macos:
22 required: false
23 default: true
24 type: boolean
25 x86_64_windows:
26 required: false
27 default: true
28 type: boolean
29 aarch64_linux:
30 required: false
31 default: true
32 type: boolean
33 aarch64_macos:
34 required: false
35 default: true
36 type: boolean
373 pull_request:
384 push:
395 branches:
......@@ -44,110 +10,52 @@ concurrency:
4410 cancel-in-progress: true
4511jobs:
4612 x86_64-linux-debug:
47 if: ${{ github.event_name != 'workflow_dispatch' || inputs.x86_64_linux_debug }}
4813 runs-on: [self-hosted, Linux, x86_64]
4914 steps:
5015 - name: Checkout
5116 uses: actions/checkout@v3
52 - name: Switch to specific commit
53 if: ${{ github.event_name == 'workflow_dispatch' }}
54 run: |
55 rm -rf ../ci
56 cp -r ci ../
57 git checkout ${{ inputs.commit }}
58 rm -rf ci
59 mv ../ci .
6017 - name: Build and Test
6118 run: sh ./ci/linux/build-x86_64-debug.sh
6219 - name: Print Version
6320 run: echo "$(build-debug/stage3-debug/bin/zig version)"
6421 x86_64-linux-release:
65 if: ${{ github.event_name != 'workflow_dispatch' || inputs.x86_64_linux_release }}
6622 runs-on: [self-hosted, Linux, x86_64]
6723 steps:
6824 - name: Checkout
6925 uses: actions/checkout@v3
70 - name: Switch to specific commit
71 if: ${{ github.event_name == 'workflow_dispatch' }}
72 run: |
73 rm -rf ../ci
74 cp -r ci ../
75 git checkout ${{ inputs.commit }}
76 rm -rf ci
77 mv ../ci .
7826 - name: Build and Test
7927 run: sh ./ci/linux/build-x86_64-release.sh
8028 x86_64-macos:
81 if: ${{ github.event_name != 'workflow_dispatch' || inputs.x86_64_macos }}
8229 runs-on: "macos-11"
8330 env:
8431 ARCH: "x86_64"
8532 steps:
8633 - name: Checkout
8734 uses: actions/checkout@v3
88 - name: Switch to specific commit
89 if: ${{ github.event_name == 'workflow_dispatch' }}
90 run: |
91 rm -rf ../ci
92 cp -r ci ../
93 git checkout ${{ inputs.commit }}
94 rm -rf ci
95 mv ../ci .
9635 - name: Build and Test
9736 run: ./ci/macos/build-x86_64.sh
9837 x86_64-windows:
99 if: ${{ github.event_name != 'workflow_dispatch' || inputs.x86_64_windows }}
10038 runs-on: windows-latest
10139 env:
10240 ARCH: "x86_64"
10341 steps:
10442 - name: Checkout
10543 uses: actions/checkout@v3
106 - name: Switch to specific commit
107 if: ${{ github.event_name == 'workflow_dispatch' }}
108 run: |
109 if (Test-Path ../ci) { del -r ../ci }
110 cp ci ../
111 git checkout ${{ inputs.commit }}
112 del -r ci
113 mv ../ci .
11444 - name: Build and Test
11545 run: ./ci/windows/build.ps1
11646 aarch64-linux:
117 if: ${{ github.event_name != 'workflow_dispatch' || inputs.aarch64_linux }}
11847 runs-on: [self-hosted, Linux, aarch64]
11948 steps:
12049 - name: Checkout
12150 uses: actions/checkout@v3
122 - name: Switch to specific commit
123 if: ${{ github.event_name == 'workflow_dispatch' }}
124 run: |
125 rm -rf ../ci
126 cp -r ci ../
127 if ((git rev-parse --is-shallow-repository) -eq "true") {
128 git fetch --unshallow # `git describe` won't work on a shallow repo
129 }
130 git fetch
131 git checkout ${{ inputs.commit }}
132 rm -rf ci
133 mv ../ci .
13451 - name: Build and Test
13552 run: sh ./ci/linux/build-aarch64.sh
13653 aarch64-macos:
137 if: ${{ github.event_name != 'workflow_dispatch' || inputs.aarch64_macos }}
13854 runs-on: [self-hosted, macOS, aarch64]
13955 env:
14056 ARCH: "aarch64"
14157 steps:
14258 - name: Checkout
14359 uses: actions/checkout@v3
144 - name: Switch to specific commit
145 if: ${{ github.event_name == 'workflow_dispatch' }}
146 run: |
147 rm -rf ../ci
148 cp -r ci ../
149 git checkout ${{ inputs.commit }}
150 rm -rf ci
151 mv ../ci .
15260 - name: Build and Test
15361 run: ./ci/macos/build-aarch64.sh