Skip to content

Commit cc7e30b

Browse files
authored
ci(): Make a build action
[codex] Simplify Quartus CI build
2 parents 0d54d02 + 5c09db7 commit cc7e30b

1 file changed

Lines changed: 23 additions & 8 deletions

File tree

.github/workflows/ci_build.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
name: CI Build
22

33
on:
4+
pull_request:
45
push:
56
workflow_dispatch:
67

8+
permissions:
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
1014

1115
steps:
12-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@v6
17+
18+
- name: Build with Quartus Lite
19+
run: |
20+
set -euo pipefail
21+
docker run --rm \
22+
-v "${{ github.workspace }}:/project" \
23+
-w /project \
24+
theypsilon/quartus-lite-c5:17.0.2.docker0 \
25+
/opt/intelFPGA_lite/quartus/bin/quartus_sh --flow compile menu
26+
27+
- name: Check build output
28+
run: test -f output_files/menu.rbf
1329

14-
- name: Build
15-
run: set -o pipefail && curl --fail --location https://raw.githubusercontent.com/MiSTer-unstable-nightlies/Build-Automation_MiSTer/main/build.sh | bash -
16-
env:
17-
REPOSITORY: ${{ github.repository }}
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
DISPATCH_TOKEN: ${{ secrets.BUILD_AUTOMATION_DISPATCH_TOKEN }}
20-
WEBHOOK_URL: ${{ secrets.DISCORD_NIGHTLIES_WEBHOOK_URL }}
30+
- name: Upload RBF
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: menu-rbf
34+
path: output_files/menu.rbf
35+
if-no-files-found: error

0 commit comments

Comments
 (0)