Skip to content

Bump actions/checkout from 5 to 6 (#266) #616

Bump actions/checkout from 5 to 6 (#266)

Bump actions/checkout from 5 to 6 (#266) #616

Workflow file for this run

name: Build package
on: [push, pull_request]
jobs:
snap:
strategy:
matrix:
include:
- os: ubuntu-latest
arch: amd64
- os: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: snapcore/action-build@v1
id: snapcraft
with:
snapcraft-args: --build-for=${{ matrix.arch }}
- name: Test the package
run: |
sudo snap install --dangerous --classic ${{ steps.snapcraft.outputs.snap }}
dvc doctor
dvc doctor | grep "azure\|gdrive\|gs\|s3\|webdav"
dvc list https://github.com/iterative/dvc
dvc get https://github.com/iterative/dataset-registry get-started/data.xml -o data.xml
sudo snap remove dvc
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
with:
snap: ${{ steps.snapcraft.outputs.snap }}
release: stable,v2/stable
notify:
if: github.ref == 'refs/heads/main' && failure()
needs: [snap]
runs-on: ubuntu-latest
steps:
- name: Slack Notification
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_MESSAGE: 'Package build failed for ${{ github.repository }}'
SLACK_TITLE: CI Status
SLACK_USERNAME: dvc-pkg-build