-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into markdown-linkcheck
- Loading branch information
Showing
45 changed files
with
2,656 additions
and
495 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Build and Publish Sparsify Release Docker Images | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-push-docker-image: | ||
name: Build and Push Version Tagged Docker Images to GitHub Container Registry | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Cleanup disk | ||
run: | | ||
sudo ls -l /usr/local/lib/ | ||
sudo ls -l /usr/share/ | ||
sudo du -sh /usr/local/lib/ | ||
sudo du -sh /usr/share/ | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /usr/share/dotnet | ||
sudo du -sh /usr/local/lib/ | ||
sudo du -sh /usr/share/ | ||
- name: Set up Docker Buildx | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Login to Github Packages | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout code | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Get Tag | ||
id: extract_tag | ||
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF_NAME#*/})" | ||
|
||
- name: Current Version Name | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
run: | | ||
echo ${{ steps.extract_tag.outputs.tag }} | ||
- name: Build and push sparsify release ${{ steps.extract_tag.outputs.tag }} docker image | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./docker | ||
build-args: | | ||
REF=release/${{ steps.extract_tag.outputs.tag }} | ||
push: true | ||
tags: | | ||
ghcr.io/neuralmagic/sparsify:${{ steps.extract_tag.outputs.tag }} | ||
- name: Image digest | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Build and Publish Sparsify Release Docker Images | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build-and-push-docker-image: | ||
name: Build and Push Version Tagged Docker Images to GitHub Container Registry | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Cleanup disk | ||
run: | | ||
sudo ls -l /usr/local/lib/ | ||
sudo ls -l /usr/share/ | ||
sudo du -sh /usr/local/lib/ | ||
sudo du -sh /usr/share/ | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /usr/share/dotnet | ||
sudo du -sh /usr/local/lib/ | ||
sudo du -sh /usr/share/ | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
buildkitd-flags: --debug | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Login to Github Packages | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
- name: Build and push sparsify-nightly docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./docker | ||
build-args: | | ||
REF=main | ||
push: true | ||
tags: | | ||
ghcr.io/neuralmagic/sparsify-nightly:latest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
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
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
recursive-include src/sparsify/ui/ * | ||
include LICENSE | ||
include src/sparsify/auto/tasks/deployment_instructions.md | ||
include src/sparsify/auto/samples/finetune_llmfoundry_sample.yaml |
Oops, something went wrong.