Skip to content

Commit db093b7

Browse files
authored
Create setup.yml
1 parent 5239a08 commit db093b7

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/blank.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
run-setup:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repo
13+
uses: actions/checkout@v4
14+
15+
- name: Make setup.sh executable (if needed)
16+
run: chmod +x ./setup.sh
17+
18+
- name: Run setup.sh with strict bash
19+
id: run_setup
20+
shell: bash
21+
run: |
22+
set -euo pipefail
23+
./setup.sh 2>&1 | tee setup.log
24+
25+
- name: Upload setup log on failure
26+
if: failure()
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: setup-log
30+
path: setup.log

0 commit comments

Comments
 (0)