Skip to content

Commit

Permalink
Try CircleCI Build (#261)
Browse files Browse the repository at this point in the history
* Try CircleCI Build

* Change image

* Fix architecture

* Try CI

* Add poetry

* Fix

* Try fix

* Try sudo

* Try build in docker

* Try fix

* Fix

* Hack

* Change working dir

* Fix

* Try poetry

* Fix

* Add GIT_SHA

* Fix mac

* Fix

* Fix mac

* Fix mac

* Fix mac

* Fix win

* Add win orb

* Fix

* Fix

* Fix

* Fix name

* Fix

* Add param

* Fix size

* Change size

* Add tag

* Add self-hosted

* Add condition

* Fix upload

* Fix build

* Fix

* Fix build
  • Loading branch information
antares-sw authored Jan 9, 2024
1 parent 528fd73 commit 310f48c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
cp ${BUILD_FILE_NAME}.tar.gz /tmp/artifacts;
sha256sum ${BUILD_FILE_NAME}.tar.gz | head -c 64 > /tmp/artifacts/${BUILD_FILE_NAME}.sha256;
- OS: macos-11
- OS: self-hosted
PYTHON_VERSION: 3.10.13
BUILD_CMD: |
export PYTHONHASHSEED=42
export BUILD_FILE_NAME=operator-${RELEASE_VERSION}-darwin-amd64;
export BUILD_FILE_NAME=operator-${RELEASE_VERSION}-linux-arm64;
mkdir ${BUILD_FILE_NAME};
git rev-parse --short HEAD > GIT_SHA
poetry run pyinstaller \
Expand All @@ -39,6 +39,21 @@ jobs:
tar -zcvf ${BUILD_FILE_NAME}.tar.gz ${BUILD_FILE_NAME};
mkdir /tmp/artifacts;
cp ${BUILD_FILE_NAME}.tar.gz /tmp/artifacts;
sha256sum ${BUILD_FILE_NAME}.tar.gz | head -c 64 > /tmp/artifacts/${BUILD_FILE_NAME}.sha256;
- OS: macos-11
PYTHON_VERSION: 3.10.13
BUILD_CMD: |
export PYTHONHASHSEED=42
export BUILD_FILE_NAME=operator-${RELEASE_VERSION}-darwin-amd64;
mkdir ${BUILD_FILE_NAME};
git rev-parse --short HEAD > GIT_SHA
poetry run pyinstaller \
--distpath ./${BUILD_FILE_NAME} \
./operator.spec;
tar -zcvf ${BUILD_FILE_NAME}.tar.gz ${BUILD_FILE_NAME};
mkdir /tmp/artifacts || true;
cp -f ${BUILD_FILE_NAME}.tar.gz /tmp/artifacts;
shasum -a 256 ${BUILD_FILE_NAME}.tar.gz | head -c 64 > /tmp/artifacts/${BUILD_FILE_NAME}.sha256
- OS: windows-latest
Expand All @@ -64,11 +79,13 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.PYTHON_VERSION }}
if: matrix.os != 'self-hosted'

- name: Install Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.6.1"
if: matrix.os != 'self-hosted'

- name: Install dependencies
run: poetry install --no-interaction --no-root
Expand Down Expand Up @@ -113,6 +130,8 @@ jobs:
files: |
/tmp/artifacts/ubuntu-20.04/operator-${{ steps.get_version.outputs.VERSION }}-linux-amd64.tar.gz
/tmp/artifacts/ubuntu-20.04/operator-${{ steps.get_version.outputs.VERSION }}-linux-amd64.sha256
/tmp/artifacts/self-hosted/operator-${{ steps.get_version.outputs.VERSION }}-linux-arm64.tar.gz
/tmp/artifacts/self-hosted/operator-${{ steps.get_version.outputs.VERSION }}-linux-arm64.sha256
/tmp/artifacts/macos-11/operator-${{ steps.get_version.outputs.VERSION }}-darwin-amd64.tar.gz
/tmp/artifacts/macos-11/operator-${{ steps.get_version.outputs.VERSION }}-darwin-amd64.sha256
/tmp/artifacts/windows-latest/operator-${{ steps.get_version.outputs.VERSION }}-windows-amd64.zip
Expand Down

0 comments on commit 310f48c

Please sign in to comment.