Skip to content

Commit

Permalink
change release process to produce only python package
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalinghee committed Jan 11, 2024
1 parent 79a88b5 commit ebbd13c
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,58 +44,58 @@ jobs:
outputs:
distros: ${{ steps.set-distros.outputs.distros }}

# now build the packages with a matrix build.
build-debs:
needs: get-distros
name: "Build .deb packages"
runs-on: ubuntu-latest
strategy:
matrix:
distro: ${{ fromJson(needs.get-distros.outputs.distros) }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: src

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

- name: Set up docker layer caching
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Build the packages
# see https://github.com/docker/build-push-action/issues/252
# for the cache magic here
run: |
./src/scripts-dev/build_debian_packages.py \
--docker-build-arg=--cache-from=type=local,src=/tmp/.buildx-cache \
--docker-build-arg=--cache-to=type=local,mode=max,dest=/tmp/.buildx-cache-new \
--docker-build-arg=--progress=plain \
--docker-build-arg=--load \
"${{ matrix.distro }}"
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Upload debs as artifacts
uses: actions/upload-artifact@v4
with:
name: debs
path: debs/*
# # now build the packages with a matrix build.
# build-debs:
# needs: get-distros
# name: "Build .deb packages"
# runs-on: ubuntu-latest
# strategy:
# matrix:
# distro: ${{ fromJson(needs.get-distros.outputs.distros) }}
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# path: src
#
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v3
# with:
# install: true
#
# - name: Set up docker layer caching
# uses: actions/cache@v3
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ github.sha }}
# restore-keys: |
# ${{ runner.os }}-buildx-
#
# - name: Set up python
# uses: actions/setup-python@v5
# with:
# python-version: '3.x'
#
# - name: Build the packages
# # see https://github.com/docker/build-push-action/issues/252
# # for the cache magic here
# run: |
# ./src/scripts-dev/build_debian_packages.py \
# --docker-build-arg=--cache-from=type=local,src=/tmp/.buildx-cache \
# --docker-build-arg=--cache-to=type=local,mode=max,dest=/tmp/.buildx-cache-new \
# --docker-build-arg=--progress=plain \
# --docker-build-arg=--load \
# "${{ matrix.distro }}"
# rm -rf /tmp/.buildx-cache
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache
#
# - name: Upload debs as artifacts
# uses: actions/upload-artifact@v4
# with:
# name: debs
# path: debs/*

build-wheels:
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }}
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:
name: "Attach assets to release"
if: ${{ !failure() && !cancelled() && startsWith(github.ref, 'refs/tags/') }}
needs:
- build-debs
# - build-debs
- build-wheels
- build-sdist
runs-on: ubuntu-latest
Expand All @@ -205,7 +205,7 @@ jobs:
files: |
Sdist/*
Wheel/*
debs.tar.xz
# debs.tar.xz
# if it's not already published, keep the release as a draft.
draft: true
# mark it as a prerelease if the tag contains 'rc'.
Expand Down

0 comments on commit ebbd13c

Please sign in to comment.