workflows: Update action
versions and use common titles for steps
This commit is contained in:
parent
2f5da4e628
commit
36d26f54b9
34
.github/workflows/release-tests.yml
vendored
34
.github/workflows/release-tests.yml
vendored
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
name: "Release Tests"
|
name: "Development Snapshot"
|
||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -22,8 +22,8 @@ jobs:
|
||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
tag_abbrev=$(git describe --tags --abbrev=0)
|
tag_abbrev=$(git tag | sort -h | grep -oE "(^[0-9]+\.[0-9]+(.[0-9])?)$" | tail -1)
|
||||||
echo "::set-output name=tag_abbrev::${tag_abbrev%%-rc*}"
|
echo "::set-output name=tag_abbrev::$tag_abbrev"
|
||||||
echo "::set-output name=tag_offset::$(git rev-list $tag_abbrev..HEAD --count)"
|
echo "::set-output name=tag_offset::$(git rev-list $tag_abbrev..HEAD --count)"
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
echo "::set-output name=full_desc::$(git describe --long --tags)"
|
echo "::set-output name=full_desc::$(git describe --long --tags)"
|
||||||
|
@ -38,7 +38,7 @@ jobs:
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.hunterwittenborn.com/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.hunterwittenborn.com/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install makedeb
|
sudo apt install makedeb
|
||||||
- name: prepare source directory
|
- name: Prepare source directory
|
||||||
run: |
|
run: |
|
||||||
git clone https://mpr.hunterwittenborn.com/rare.git build
|
git clone https://mpr.hunterwittenborn.com/rare.git build
|
||||||
sed -i 's/source=.*/source=("rare-test::git+$url")/g' build/PKGBUILD
|
sed -i 's/source=.*/source=("rare-test::git+$url")/g' build/PKGBUILD
|
||||||
|
@ -61,23 +61,23 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: install Deps
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install python3 python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
sudo apt install python3 python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
||||||
- name: install appimage-builder
|
- name: Install appimage-builder
|
||||||
run: |
|
run: |
|
||||||
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
||||||
sudo chmod +x /usr/local/bin/appimagetool
|
sudo chmod +x /usr/local/bin/appimagetool
|
||||||
sudo pip3 install appimage-builder
|
sudo pip3 install appimage-builder
|
||||||
- name: Build Appimage
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cp rare/__main__.py .
|
cp rare/__main__.py .
|
||||||
appimage-builder --skip-test
|
appimage-builder --skip-test
|
||||||
mv Rare-*.AppImage Rare.AppImage
|
mv Rare-*.AppImage Rare.AppImage
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Rare.AppImage
|
name: Rare.AppImage
|
||||||
path: Rare.AppImage
|
path: Rare.AppImage
|
||||||
|
@ -165,22 +165,17 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
- name: Install Build Dependencies
|
||||||
- name: Pip Dependencies
|
run: pip install pyinstaller
|
||||||
|
- name: Install Target Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller
|
- name: Move files
|
||||||
|
|
||||||
- name: copy files
|
|
||||||
run: mv rare/__main__.py __main__.py
|
run: mv rare/__main__.py __main__.py
|
||||||
|
- name: Build
|
||||||
- name: run pyinstaller
|
|
||||||
run: >-
|
run: >-
|
||||||
pyinstaller -F --name Rare
|
pyinstaller -F --name Rare
|
||||||
--add-data "rare/resources/languages/*:rare/resources/languages"
|
--add-data "rare/resources/languages/*:rare/resources/languages"
|
||||||
|
@ -189,8 +184,7 @@ jobs:
|
||||||
--icon rare/resources/images/Rare.icns
|
--icon rare/resources/images/Rare.icns
|
||||||
--hidden-import=legendary
|
--hidden-import=legendary
|
||||||
__main__.py
|
__main__.py
|
||||||
|
- name: Create dmg
|
||||||
- name: create dmg
|
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/create-dmg/create-dmg
|
git clone https://github.com/create-dmg/create-dmg
|
||||||
create-dmg/create-dmg Rare-${{github.ref}}.dmg dist/Rare.App --volname Rare --volicon rare/resources/images/Rare.icns
|
create-dmg/create-dmg Rare-${{github.ref}}.dmg dist/Rare.App --volname Rare --volicon rare/resources/images/Rare.icns
|
||||||
|
|
34
.github/workflows/release.yml
vendored
34
.github/workflows/release.yml
vendored
|
@ -40,7 +40,7 @@ jobs:
|
||||||
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.hunterwittenborn.com/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.hunterwittenborn.com/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install makedeb
|
sudo apt install makedeb
|
||||||
- name: prepare pkgbuild
|
- name: Prepare source directory
|
||||||
run: |
|
run: |
|
||||||
git clone https://mpr.hunterwittenborn.com/rare.git build
|
git clone https://mpr.hunterwittenborn.com/rare.git build
|
||||||
sed -i "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/g" build/PKGBUILD
|
sed -i "s/pkgver=.*/pkgver=${{ github.event.release.tag_name }}/g" build/PKGBUILD
|
||||||
|
@ -63,19 +63,17 @@ jobs:
|
||||||
appimage:
|
appimage:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
- name: Install build dependencies
|
||||||
submodules: true
|
|
||||||
- name: install Deps
|
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install python3 python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
sudo apt install python3 python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
|
||||||
- name: install appimage-builder
|
- name: Install appimage-builder
|
||||||
run: |
|
run: |
|
||||||
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool
|
||||||
sudo chmod +x /usr/local/bin/appimagetool
|
sudo chmod +x /usr/local/bin/appimagetool
|
||||||
sudo pip3 install appimage-builder
|
sudo pip3 install appimage-builder
|
||||||
- name: Build Appimage
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cp rare/__main__.py .
|
cp rare/__main__.py .
|
||||||
appimage-builder --skip-test
|
appimage-builder --skip-test
|
||||||
|
@ -103,8 +101,6 @@ jobs:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
@ -162,8 +158,6 @@ jobs:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
@ -192,22 +186,17 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
- name: Install Build Dependencies
|
||||||
- name: Pip Dependencies
|
run: pip install pyinstaller
|
||||||
|
- name: Install Target Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install pyinstaller
|
- name: Move files
|
||||||
|
|
||||||
- name: copy files
|
|
||||||
run: mv rare/__main__.py __main__.py
|
run: mv rare/__main__.py __main__.py
|
||||||
|
- name: Build
|
||||||
- name: run pyinstaller
|
|
||||||
run: >-
|
run: >-
|
||||||
pyinstaller -F --name Rare
|
pyinstaller -F --name Rare
|
||||||
--add-data "rare/resources/languages/*:rare/resources/languages"
|
--add-data "rare/resources/languages/*:rare/resources/languages"
|
||||||
|
@ -216,8 +205,7 @@ jobs:
|
||||||
--icon rare/resources/images/Rare.icns
|
--icon rare/resources/images/Rare.icns
|
||||||
--hidden-import=legendary
|
--hidden-import=legendary
|
||||||
__main__.py
|
__main__.py
|
||||||
|
- name: Create dmg
|
||||||
- name: create dmg
|
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/create-dmg/create-dmg
|
git clone https://github.com/create-dmg/create-dmg
|
||||||
create-dmg/create-dmg Rare.dmg dist/Rare.App --volname Rare --volicon rare/resources/images/Rare.icns
|
create-dmg/create-dmg Rare.dmg dist/Rare.App --volname Rare --volicon rare/resources/images/Rare.icns
|
||||||
|
|
Loading…
Reference in a new issue