-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
21 changed files
with
0 additions
and
886 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.