Skip to content

Commit

Permalink
updating workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xnetcat committed Aug 25, 2023
1 parent 1525fea commit 589f643
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-hub-image-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:

steps:
- name: Checkout dev branch for nightly build
uses: actions/checkout@v2
uses: actions/checkout@v3
if: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && !inputs.wants_production_build) }}
with:
ref: "refs/heads/dev"

- name: Checkout main branch for production build
uses: actions/checkout@v2
uses: actions/checkout@v3
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && inputs.wants_production_build) }}
with:
ref: "refs/heads/master"
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
Expand Down Expand Up @@ -86,13 +86,14 @@ jobs:
runs-on: ubuntu-latest
name: Build on ubuntu-latest aarch64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
with:
arch: aarch64
distro: ubuntu_latest
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}/:/spotdl"
Expand All @@ -102,10 +103,11 @@ jobs:
apt update
apt install python3 python3-pip -y
pip install poetry
cd /spotdl
poetry install
run: |
cd /spotdl
poetry install
poetry run python ./scripts/build.py
for file in dist/spotdl*; do cp "$file" "${file}-aarch64"; done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
max-parallel: 4
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ "3.7", "3.10" ]
python-version: [ "3.8", "3.10" ]

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 589f643

Please sign in to comment.