From 430fc9bd774524a790a0dab41c40c1b73b7acfac Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Thu, 17 Aug 2023 11:16:01 +0800 Subject: [PATCH] Add wheels github workflow Signed-off-by: Loren Eteval --- .github/workflows/wheels.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/wheels.yml diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml new file mode 100644 index 0000000..0ea2a2a --- /dev/null +++ b/.github/workflows/wheels.yml @@ -0,0 +1,43 @@ +name: Build Furious + +on: [push, pull_request] + +jobs: + build: + name: ${{ matrix.os }} Python ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022, macos-11, macos-12, macos-13] + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v4 + with: + go-version: "1.20.0" + - run: go version + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: python --version + + - name: Update pip + run: python -m pip install --upgrade pip + + - name: Install wheel + run: python -m pip install wheel + + - name: Install requirements.txt + run: python -m pip install -r requirements.txt + + - name: Generate source distribution + run: python setup.py sdist + + - name: Generate wheel distribution + run: python setup.py bdist_wheel + + - name: Install from source + run: python setup.py install