Skip to content

Commit

Permalink
CI: Upload nightly builds to https://github.com/fricas/fricas-nightly…
Browse files Browse the repository at this point in the history
  • Loading branch information
oldk1331 committed Aug 20, 2022
1 parent 5a95531 commit 7df8d22
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ jobs:
with:
name: FriCAS-linux-x86_64-binary
path: FriCAS-linux-x86_64-${{ github.sha }}.tbz2
- name: Upload to nightly release
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'fricas/fricas' }}
run: |
export OWNER_REPO=fricas/fricas-nightly-builds
export RELEASE_ID=`curl https://api.github.com/repos/${OWNER_REPO}/releases/tags/nightly | jq .id`
curl -v -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.releasetoken }}" "https://uploads.github.com/repos/${OWNER_REPO}/releases/${RELEASE_ID}/assets?name=FriCAS-$(date +%Y-%m-%dT%H.%M)-linux-x86_64-$(echo ${{ github.sha }} | cut -c 1-8).tbz2" --data-binary "@FriCAS-linux-x86_64-${{ github.sha }}.tbz2" -H "Content-Type: application/x-bzip2" || true
6 changes: 6 additions & 0 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ jobs:
with:
name: FriCAS-macOS-x86_64-binary
path: FriCAS-macOS-x86_64-${{ github.sha }}.dmg
- name: Upload to nightly release
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'fricas/fricas' }}
run: |
export OWNER_REPO=fricas/fricas-nightly-builds
export RELEASE_ID=`curl https://api.github.com/repos/${OWNER_REPO}/releases/tags/nightly | jq .id`
curl -v -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.releasetoken }}" "https://uploads.github.com/repos/${OWNER_REPO}/releases/${RELEASE_ID}/assets?name=FriCAS-$(date +%Y-%m-%dT%H.%M)-macOS-x86_64-$(echo ${{ github.sha }} | cut -c 1-8).dmg" --data-binary "@FriCAS-macOS-x86_64-${{ github.sha }}.dmg" -H "Content-Type: application/x-apple-diskimage" || true
8 changes: 7 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- uses: msys2/setup-msys2@v2
with:
install: make mingw-w64-x86_64-gcc mingw-w64-x86_64-gmp gmp-devel zip
install: make mingw-w64-x86_64-gcc mingw-w64-x86_64-gmp gmp-devel zip mingw-w64-x86_64-jq
- name: download SBCL
run: wget https://downloads.sourceforge.net/project/sbcl/sbcl/2.2.5/sbcl-2.2.5-x86-64-windows-binary.msi
- name: install SBCL
Expand All @@ -41,3 +41,9 @@ jobs:
with:
name: FriCAS-windows-x86_64-binary
path: FriCAS-windows-x86_64-${{ github.sha }}.zip
- name: Upload to nightly release
if: ${{ github.event_name == 'push' && github.event.ref == 'refs/heads/master' && github.repository == 'fricas/fricas' }}
run: |
export OWNER_REPO=fricas/fricas-nightly-builds
export RELEASE_ID=`curl https://api.github.com/repos/${OWNER_REPO}/releases/tags/nightly | jq .id`
curl -v -X POST -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.releasetoken }}" "https://uploads.github.com/repos/${OWNER_REPO}/releases/${RELEASE_ID}/assets?name=FriCAS-$(date +%Y-%m-%dT%H.%M)-windows-x86_64-$(echo ${{ github.sha }} | cut -c 1-8).zip" --data-binary "@FriCAS-windows-x86_64-${{ github.sha }}.zip" -H "Content-Type: application/zip" || true

0 comments on commit 7df8d22

Please sign in to comment.