workflows: add more version information
This commit is contained in:
parent
7d2e1ddac2
commit
e15aa0a480
59
.github/workflows/release-tests.yml
vendored
59
.github/workflows/release-tests.yml
vendored
|
@ -5,7 +5,6 @@ name: "Release Tests"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deb-package:
|
deb-package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -29,7 +28,7 @@ jobs:
|
||||||
mv *.deb Rare.deb
|
mv *.deb Rare.deb
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Rare.deb
|
name: Rare.deb
|
||||||
path: build/Rare.deb
|
path: build/Rare.deb
|
||||||
|
@ -64,24 +63,28 @@ jobs:
|
||||||
nuitka:
|
nuitka:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
architecture: x64
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: pip3 install nuitka ordered-set
|
run: pip3 install nuitka ordered-set
|
||||||
- name: Install target dependencies
|
- name: Install target dependencies
|
||||||
run: |
|
run: |
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
pip3 install -r requirements-presence.txt
|
pip3 install -r requirements-presence.txt
|
||||||
- name: Version
|
- name: Versions
|
||||||
id: version
|
id: version
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git fetch --prune --unshallow
|
tag_abbrev=$(git describe --tags --abbrev=0)
|
||||||
echo "::set-output name=tag_offset::$(git describe --long --tags)"
|
echo "::set-output name=tag_abbrev::${tag_abbrev%%-rc*}"
|
||||||
|
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)"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >-
|
run: >-
|
||||||
python -m nuitka
|
python -m nuitka
|
||||||
|
@ -108,57 +111,61 @@ jobs:
|
||||||
--windows-company-name=Rare
|
--windows-company-name=Rare
|
||||||
--windows-product-name=Rare
|
--windows-product-name=Rare
|
||||||
--windows-file-description=rare.exe
|
--windows-file-description=rare.exe
|
||||||
--windows-file-version=0.0.0.0
|
--windows-file-version=${{ steps.version.outputs.tag_abbrev }}.${{ steps.version.outputs.tag_offset }}
|
||||||
--windows-product-version=0.0.0.0
|
--windows-product-version=${{ steps.version.outputs.tag_abbrev }}.${{ steps.version.outputs.tag_offset }}
|
||||||
--enable-console
|
--enable-console
|
||||||
rare
|
rare
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Rare-Windows-${{ steps.version.outputs.tag_offset }}
|
name: Rare-Windows-${{ steps.version.outputs.tag_abbrev }}.${{ steps.version.outputs.tag_offset }}
|
||||||
path: rare.dist
|
path: rare.dist
|
||||||
|
|
||||||
cx_freeze:
|
cx_freeze:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
architecture: x64
|
||||||
- name: Install Build Dependencies
|
- name: Install Build Dependencies
|
||||||
run: pip3 install --upgrade cx_freeze wheel
|
run: pip3 install --upgrade cx_freeze wheel
|
||||||
- name: Install Target Dependencies
|
- name: Install Target Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
pip3 install -r requirements-presence.txt
|
pip3 install -r requirements-presence.txt
|
||||||
- name: Version
|
- name: Versions
|
||||||
id: version
|
id: version
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git fetch --prune --unshallow
|
tag_abbrev=$(git describe --tags --abbrev=0)
|
||||||
echo "::set-output name=tag_offset::$(git describe --long --tags)"
|
echo "::set-output name=tag_abbrev::${tag_abbrev%%-rc*}"
|
||||||
|
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)"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
python freeze.py bdist_msi
|
python freeze.py bdist_msi
|
||||||
mv dist/*.msi dist/Rare-Windows.msi
|
mv dist/*.msi dist/Rare-Windows.msi
|
||||||
|
|
||||||
- name: Upload to Artifacts
|
- name: Upload to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Rare-Windows-${{ steps.version.outputs.tag_offset }}.msi
|
name: Rare-Windows-${{ steps.version.outputs.tag_abbrev }}.${{ steps.version.outputs.tag_offset }}.msi
|
||||||
path: dist/*.msi
|
path: dist/*.msi
|
||||||
|
|
||||||
mac_os:
|
mac_os:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
|
||||||
|
@ -175,15 +182,17 @@ jobs:
|
||||||
pyinstaller -F --name Rare
|
pyinstaller -F --name Rare
|
||||||
--add-data "rare/resources/languages/*:rare/resources/languages"
|
--add-data "rare/resources/languages/*:rare/resources/languages"
|
||||||
--add-data "rare/resources/images/*:rare/resources/images/"
|
--add-data "rare/resources/images/*:rare/resources/images/"
|
||||||
--windowed --icon rare/resources/images/Rare.icns
|
--windowed
|
||||||
--hidden-import=legendary __main__.py
|
--icon rare/resources/images/Rare.icns
|
||||||
|
--hidden-import=legendary
|
||||||
|
__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
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Rare-MacOS.dmg
|
name: Rare-MacOS.dmg
|
||||||
path: ./*.dmg
|
path: ./*.dmg
|
||||||
|
|
30
.github/workflows/release.yml
vendored
30
.github/workflows/release.yml
vendored
|
@ -12,13 +12,13 @@ jobs:
|
||||||
if: "!github.event.release.prerelease"
|
if: "!github.event.release.prerelease"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.9'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
@ -102,12 +102,13 @@ jobs:
|
||||||
nuitka:
|
nuitka:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
architecture: x64
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: pip3 install nuitka ordered-set
|
run: pip3 install nuitka ordered-set
|
||||||
- name: Install target dependencies
|
- name: Install target dependencies
|
||||||
|
@ -160,12 +161,13 @@ jobs:
|
||||||
cx_freeze:
|
cx_freeze:
|
||||||
runs-on: "windows-latest"
|
runs-on: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
architecture: x64
|
||||||
- name: Install Build Dependencies
|
- name: Install Build Dependencies
|
||||||
run: pip3 install --upgrade cx_freeze wheel
|
run: pip3 install --upgrade cx_freeze wheel
|
||||||
- name: Install Target Dependencies
|
- name: Install Target Dependencies
|
||||||
|
@ -189,11 +191,11 @@ jobs:
|
||||||
mac_os:
|
mac_os:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
|
||||||
|
@ -210,8 +212,10 @@ jobs:
|
||||||
pyinstaller -F --name Rare
|
pyinstaller -F --name Rare
|
||||||
--add-data "rare/resources/languages/*:rare/resources/languages"
|
--add-data "rare/resources/languages/*:rare/resources/languages"
|
||||||
--add-data "rare/resources/images/*:rare/resources/images/"
|
--add-data "rare/resources/images/*:rare/resources/images/"
|
||||||
--windowed --icon rare/resources/images/Rare.icns
|
--windowed
|
||||||
--hidden-import=legendary __main__.py
|
--icon rare/resources/images/Rare.icns
|
||||||
|
--hidden-import=legendary
|
||||||
|
__main__.py
|
||||||
|
|
||||||
- name: create dmg
|
- name: create dmg
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue