Skip to content

Commit

Permalink
packaging(ci): add job to build wheel on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed May 16, 2024
1 parent 5ecf6fc commit 3f7d528
Showing 1 changed file with 51 additions and 4 deletions.
55 changes: 51 additions & 4 deletions .github/workflows/builder_releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ on:
- "builder/"
- "requirements/packaging.txt"

workflow_dispatch:

# cancel running jobs on new commit to PR
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true


# Globals
env:
PROJECT_FOLDER: "dicogis"
Expand All @@ -30,8 +38,47 @@ env:

# Jobs definition
jobs:
build-ubuntu:
name: "🐧 Ubuntu LTS"

build-wheels-linux:
name: "🐧 Linux wheels"
runs-on: "ubuntu-20.04"

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
buildkitd-flags: --debug

- name: Build Docker image with vcpkg and gdal
# using build-push-action (without push) to make use of cache arguments
uses: docker/build-push-action@v5
with:
context: .
file: ci/manylinux2014_x86_64-vcpkg-gdal.Dockerfile
tags: manylinux-vcpkg-gdal:latest
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
env:
BUILDKIT_PROGRESS: plain

- name: Build wheels
uses: pypa/[email protected]

- uses: actions/upload-artifact@v4
with:
name: dicogis-wheel-linux
path: ./wheelhouse/*.whl
compression-level: 0

build-ubuntu-bin:
name: "🐧 Ubuntu executable"
runs-on: ubuntu-22.04

env:
Expand Down Expand Up @@ -102,8 +149,8 @@ jobs:
./dist/DicoGIS-cli.bin --version
./dist/DicoGIS-cli.bin list inventory --input-folder ./tests/ --language EN
build-windows:
name: "🏠 Windows"
build-windows-exe:
name: "🏠 Windows executable"
runs-on: windows-latest

env:
Expand Down

0 comments on commit 3f7d528

Please sign in to comment.