Skip to content

Commit

Permalink
use git-lfs for large files; aur workflow depends on rpm workflow;
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Jan 10, 2024
1 parent 4cb2c71 commit ada78f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-all-pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
aur-create:
uses: ./.github/workflows/create-aur-packages.yml
secrets: inherit
needs: is-ready
needs: rpm-create

choco-create:
uses: ./.github/workflows/create-choco-packages.yml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-deb-ppa-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
rm -rf ton-linux-arm64/{lib,smartcont}
mv ton-linux-arm64/libtonlibjson.so* ton-linux-deb-arm64/lib/
[ -e ton-linux-arm64/libemulator.so ] && mv ton-linux-arm64/libemulator.so ton-linux-deb-arm64/lib/
cp ton-linux-arm64/* ton-linux-deb-amd64/bin/
cp ton-linux-arm64/* ton-linux-deb-arm64/bin/
chmod -R 555 ton-linux-deb-arm64/{bin,lib,share}/*
mkdir -p both/{amd64,arm64}
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/create-rpm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Create rpm packages
run: |
sudo apt install -y createrepo-c rpm
sudo apt install -y createrepo-c rpm git-lfs
REPO_DIR=$PWD
TAG=$(git ls-remote --tags https://github.com/ton-blockchain/ton/ | tail -1 | sed -n -e 's/^.*tags\///p')
TAG=$(echo $TAG | sed s'/-/./')
Expand Down Expand Up @@ -73,19 +73,14 @@ jobs:
rm -rf rpm
cp -r ../work/packages-out/rpm-install rpm
# one-by-one, since there is a gh limit of 100 MB upload
git add rpm/x86_64/
git commit -m "create release x86_64 $TAG" || true
git push
git add rpm/aarch64/
git commit -m "create release aarch64 $TAG" || true
git lfs install
git lfs track "*.rpm"
git add .gitattributes
git add rpm
git commit -m "create RPM release$TAG" || true
git push
git add rpm/repodata/
git commit -m "create release repodata $TAG" || true
git push
gh release create --notes "" $TAG ../work/ton-linux-x86-64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ada78f6

Please sign in to comment.