Skip to content

Commit e90ee0d

Browse files
committed
Checkout Picard as part of actions workflow
1 parent 91b09c4 commit e90ee0d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
runs-on: ubuntu-22.04
2525
steps:
2626
- uses: actions/checkout@v6
27+
- name: Clone Picard
28+
run: |
29+
git clone --depth 500 --branch master "https://github.com/metabrainz/picard.git" source
30+
cd source
31+
git fetch --depth=1 origin "+refs/tags/release-*:refs/tags/release-*"
2732
- name: Install uv
2833
uses: astral-sh/setup-uv@v7
2934
- name: Install gettext

build-appimage.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ SOURCE_DIR="$ROOT_DIR/source/"
88

99
cd "$ROOT_DIR"
1010

11-
[ ! -d "$SOURCE_DIR" ] || rm -rf "$SOURCE_DIR"
12-
git clone --depth 500 --branch master "https://github.com/metabrainz/picard.git" "$SOURCE_DIR"
11+
if [ ! -d "$SOURCE_DIR" ]; then
12+
echo "Picard source code must be checked out in $SOURCE_DIR"
13+
exit 1
14+
fi
15+
1316
pushd "$SOURCE_DIR"
14-
git fetch --depth=1 origin "+refs/tags/release-*:refs/tags/release-*"
1517
# patch -p1 < ../appimage/appimage.patch
1618
uv sync
1719
uv run ../patch-version.sh

0 commit comments

Comments
 (0)