-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.23 KB
/
build.yml
File metadata and controls
52 lines (50 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: build
on:
push:
tags:
- 'v*.*'
jobs:
build:
strategy:
matrix:
os:
- { image: ubuntu-24.04, name: linux }
- { image: ubuntu-22.04, name: linux }
runs-on: ${{ matrix.os.image }}
env:
CI_BUILD_STAGE_NAME: build
CI_OS_NAME: ${{ matrix.os.name }}
CI_RUNS_ON: ${{ matrix.os.image }}
permissions:
contents: write
steps:
- name: Setup variables
id: variables
run: echo "::set-output name=tag::${GITHUB_REF##*/}"
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'verilator/verilator'
ref: ${{ steps.variables.outputs.tag }}
- name: Install packages for build
run: ./ci/ci-install.bash
- name: Build
run: ./ci/ci-script.bash
- name: Package
run: |
mkdir dist
cp LICENSE dist
cp README.rst dist
cp -r bin dist
cp -r include dist
cp *.cmake dist
rm dist/bin/verilator_bin_dbg
pushd dist
zip -r ../verilator-${{ matrix.os.image }}.zip .
popd
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "*.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}