Skip to content

Commit

Permalink
test build source as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajames committed Aug 23, 2023
1 parent 2ca95e4 commit 5bfaac5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/protocol-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,29 +93,29 @@ jobs:
with:
python-version: 3.11

- name: Generate dydxpy
- name: Install buf
run: |
BIN="/usr/local/bin" && \
VERSION="1.26.1" && \
curl -sSL "https://github.com/bufbuild/buf/releases/download/v${VERSION}/buf-Linux-x86_64" -o "${BIN}/buf" && \
chmod +x "${BIN}/buf"
- name: Install Requirements
run: pip install -r requirements-publish.txt

- name: Generate dydxpy
working-directory: ./
run: make dydxpy-gen

- name: Set Env from Tag (remove 'v' prefix)
run: echo "VERSION=0.0.1" >> $GITHUB_ENV
#run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Update version in setup.py
run: echo $VERSION; sed -i "s/{{VERSION}}/$VERSION/g" setup.py

- name: Install Requirements
run: pip install -r requirements-publish.txt

- name: Make
working-directory: ./
run: make dydxpy-gen

- name: Build package
run: pip3 wheel --no-deps -w dist .
run: pip3 wheel --no-deps --build-option -s -w dist .

- name: Check
run: ls dist;
Expand Down

0 comments on commit 5bfaac5

Please sign in to comment.