Skip to content

Commit

Permalink
gha: don't build binary packages
Browse files Browse the repository at this point in the history
The build process is much more stable these days and there is no reason
to keep building these packages here. Instead every package has itsown
building process (dvc-osxpkg, dvc-exe, dvc-s3-repo) and knows best how
to build and sign correctly.

pyinstaller hooks need to go into a `__pyinstaller` later on.
  • Loading branch information
efiop committed Jun 19, 2023
1 parent 92dc1f3 commit 7e1bb07
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 886 deletions.
12 changes: 0 additions & 12 deletions .dvc/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .dvc/config

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,66 +11,6 @@ permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
binary:
permissions:
contents: write # for actions/upload-release-asset to upload release asset
strategy:
matrix:
include:
- {pkg: "deb", os: "ubuntu-20.04", asset: "dvc_${{ github.event.release.tag_name }}_amd64.deb"}
- {pkg: "rpm", os: "ubuntu-20.04", asset: "dvc-${{ github.event.release.tag_name }}-1.x86_64.rpm"}
- {pkg: "osxpkg", os: "macos-11", asset: "dvc-${{ github.event.release.tag_name }}.pkg"}
- {pkg: "exe", os: "windows-2019", asset: "dvc-${{ github.event.release.tag_name }}.exe"}

name: ${{ matrix.pkg }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: pip
cache-dependency-path: |
pyproject.toml
scripts/build-requirements.txt
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
if: matrix.pkg != 'exe'
with:
ruby-version: '2.6'

- name: Install fpm
if: matrix.pkg != 'exe'
run: gem install --no-document fpm

- name: Install deps
run: |
pip install --upgrade pip wheel setuptools
pip install .[all]
pip install -r scripts/build-requirements.txt
- name: Pull images
run: dvc pull

- name: Build ${{ matrix.pkg }}
run: python scripts/build.py ${{ matrix.pkg }}

- name: Publish ${{ matrix.pkg }}
if: github.event_name == 'release'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: scripts/${{ matrix.pkg == 'exe' && 'innosetup' || 'fpm' }}/${{ matrix.asset }}
asset_name: ${{ matrix.asset }}
asset_content_type: binary/octet-stream

pip:
runs-on: ubuntu-20.04
permissions:
Expand Down
88 changes: 0 additions & 88 deletions scripts/build.py

This file was deleted.

4 changes: 0 additions & 4 deletions scripts/fpm/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/fpm/after-install.sh

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/fpm/after-remove.sh

This file was deleted.

98 changes: 0 additions & 98 deletions scripts/fpm/build.py

This file was deleted.

64 changes: 0 additions & 64 deletions scripts/fpm/notarize.py

This file was deleted.

Loading

0 comments on commit 7e1bb07

Please sign in to comment.