-
Notifications
You must be signed in to change notification settings - Fork 7
117 lines (98 loc) · 2.87 KB
/
ci.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: CI
on:
push:
branches:
- dev
tags:
- "v*"
pull_request:
types:
- opened
- synchronize
- reopened
merge_group:
defaults:
run:
shell: sh
jobs:
build-vehicle:
uses: ./.github/workflows/build-vehicle.yml
build-vehicle-python:
uses: ./.github/workflows/build-vehicle-python.yml
test-integration-bumpver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx run bumpver update --patch --dry
test-integration-citation-cff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dieghernan/cff-validator@v3
# NOTE: This job is disabled because Marabou reliably runs out of memory.
#
# test-integration-marabou:
# uses: ./.github/workflows/test-integration-marabou.yml
test-integration-ormolu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mrkkrp/ormolu-action@v15
with:
version: "0.7.1.0"
################################################################################
# Publish package to GitHub Releases
################################################################################
publish-package-to-github-releases:
name: Publish package to GitHub Releases
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs:
- build-vehicle
- build-vehicle-python
- test-integration-bumpver
# - test-integration-marabou
- test-integration-ormolu
permissions:
contents: write
steps:
- name: Download wheelhouse
uses: actions/download-artifact@v4
with:
pattern: wheelhouse-*-*
path: wheelhouse
merge-multiple: true
- name: Publish to GitHub Releases
uses: softprops/action-gh-release@v2
with:
files: wheelhouse/*.whl
fail_on_unmatched_files: true
################################################################################
# Publish package to PyPI
################################################################################
publish-package-to-pypi:
name: Publish package to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs:
- build-vehicle
- build-vehicle-python
- test-integration-bumpver
# - test-integration-marabou
- test-integration-ormolu
environment:
name: pypi
url: https://pypi.org/p/vehicle-lang
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download wheelhouse
uses: actions/download-artifact@v4
with:
pattern: wheelhouse-*-*
path: wheelhouse
merge-multiple: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse