Skip to content

Commit 2a17089

Browse files
committed
change execution
1 parent 6948d3f commit 2a17089

5 files changed

+6
-16
lines changed

.github/workflows/build_hyperdrivetypes.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
name: build and upload hyperdrivetypes wheel
22

3-
# TODO: We will want to sync the python version with the hyperdrive version & push on hyperdrive tags
4-
#on:
5-
# push:
6-
# tags:
7-
# - "v*"
8-
9-
# TODO: Temp for testing
103
on:
114
push:
5+
tags:
6+
- "v*"
127

138
jobs:
14-
# TODO: Temp for testing; will sync version
15-
detect-changes:
16-
uses: ./.github/workflows/check_diff.yaml
17-
with:
18-
pattern: ^python/\hyperdrivetypes/\pyproject.toml
199

2010
build-wheel:
2111
name: build hyperdrivetypes wheel
@@ -46,7 +36,7 @@ jobs:
4636

4737
- name: build hyperdrivetypes package
4838
shell: bash
49-
run: source scripts/build-hyperdrivetypes-wheel.sh
39+
run: scripts/build-hyperdrivetypes-wheel.sh
5040

5141
- name: upload wheel
5242
uses: actions/upload-artifact@v4

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build-sol:
1515
# forge build will do nothing if build-sol was previously run,
1616
# but we put it here so this can be called individually
1717
build-hyperdrivetypes:
18-
forge build && pypechain --output-dir python/hyperdrivetypes/hyperdrivetypes --line-length 80 out/ && source scripts/set-hyperdrivetypes-version.sh
18+
forge build && pypechain --output-dir python/hyperdrivetypes/hyperdrivetypes --line-length 80 out/ && . scripts/set-hyperdrivetypes-version.sh
1919

2020
### Test ###
2121

scripts/build-hyperdrivetypes-wheel.sh

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
# Set the python project version to match the hyperdrive version
4-
source scripts/set-hyperdrivetypes-version.sh
4+
. scripts/set-hyperdrivetypes-version.sh
55

66
# Just in case, check the versions match
7-
source scripts/verify-hyperdrivetypes-version.sh
7+
. scripts/verify-hyperdrivetypes-version.sh
88
if [ -z "$HYPERDRIVE_VERSIONS_MATCH" ]; then
99
echo "Environment variable HYPERDRIVE_VERSIONS_MATCH is not set. Exiting with failure."
1010
exit 1

scripts/set-hyperdrivetypes-version.sh

100644100755
File mode changed.

scripts/verify-hyperdrivetypes-version.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)