7 Commits

Author SHA1 Message Date
√(noham)²
825ad69828 should pass finally 2024-08-26 00:26:36 +02:00
√(noham)²
1ffa55f19f Update release.yml 2024-08-26 00:13:27 +02:00
√(noham)²
7e0e04a964 Update release.yml 2024-08-26 00:05:30 +02:00
√(noham)²
b0b1b1d197 Create releasetemp.yml 2024-08-25 23:53:09 +02:00
√(noham)²
f2dbeefa1f another test 2024-08-25 23:17:07 +02:00
√(noham)²
d7660d4c9b Update release.yml 2024-08-25 22:55:33 +02:00
√(noham)²
53d1d85ac5 ... 🥲 2024-08-25 22:37:40 +02:00
2 changed files with 94 additions and 27 deletions

View File

@@ -27,7 +27,7 @@ jobs:
steps: steps:
- name: Check-out repository - name: Check-out repository
uses: actions/checkout@v4 uses: actions/checkout@v1
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -50,7 +50,7 @@ jobs:
onefile: true onefile: true
- name: Upload Artifact[win-x64] - name: Upload Artifact[win-x64]
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3.1.3
with: with:
name: GoFileCLI_win-x64 name: GoFileCLI_win-x64
path: | path: |
@@ -64,7 +64,7 @@ jobs:
run: uname -m run: uname -m
- name: Check-out repository - name: Check-out repository
uses: actions/checkout@v4 uses: actions/checkout@v1
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -87,7 +87,7 @@ jobs:
onefile: true onefile: true
- name: Upload Artifact[linux-x64] - name: Upload Artifact[linux-x64]
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3.1.3
with: with:
name: GoFileCLI_linux-x64 name: GoFileCLI_linux-x64
path: | path: |
@@ -101,7 +101,7 @@ jobs:
run: uname -m run: uname -m
- name: Check-out repository - name: Check-out repository
uses: actions/checkout@v4 uses: actions/checkout@v1
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
@@ -123,19 +123,17 @@ jobs:
python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist --macos-target-arch=arm64 gofilecli.py python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist --macos-target-arch=arm64 gofilecli.py
python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist_x86_64 --macos-target-arch=x86_64 gofilecli.py python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist_x86_64 --macos-target-arch=x86_64 gofilecli.py
- name: Upload Artifact[osx-arm64] - name: Upload Artifact [osx-arm64]
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3.1.3
with: with:
name: GoFileCLI_osx-x64 name: GoFileCLI_osx-x64
path: | path: dist_x86_64/gofilecli.bin
dist_x86_64/gofilecli.bin
- name: Upload Artifact[osx-arm64] - name: Upload Artifact [osx-arm64]
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3.1.3
with: with:
name: GoFileCLI_osx-arm64 name: GoFileCLI_osx-arm64
path: | path: dist/gofilecli.bin
dist/gofilecli.bin
create_draft_release: create_draft_release:
name: Create Github draft release name: Create Github draft release
@@ -178,7 +176,7 @@ jobs:
attach_to_release: attach_to_release:
name: Attach native executables to release name: Attach native executables to release
if: ${{ github.event.inputs.doRelease == 'true' }} if: ${{ github.event.inputs.doRelease == 'true' }}
needs: create_draft_release needs: [create_draft_release]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Get current date - name: Get current date
@@ -191,21 +189,16 @@ jobs:
- name: Fetch executables - name: Fetch executables
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
- name: Tar (linux, macOS) - name: List downloaded files
run: | run: |
for file in *{osx,linux}*; do echo "Listing files in the working directory:"
if [ -f "$file" ]; then ls -R
tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file"
fi - name: Tar (linux, macOS)
done run: for dir in *{osx,linux}*; do tar cvzfp "${dir}_${{ env.date }}.tar.gz" "$dir"; done
- name: Zip (windows) - name: Zip (windows)
run: | run: for dir in *win*; do zip -r "${dir}_${{ env.date }}.zip" "$dir"; done
for file in *win*; do
if [ -f "$file" ]; then
zip -r "${file}_${{ env.date }}.zip" "$file"
fi
done
- name: Upload - name: Upload
run: | run: |

74
.github/workflows/releasetemp.yml vendored Normal file
View File

@@ -0,0 +1,74 @@
name: Build Latest and Release
on:
workflow_dispatch:
inputs:
doRelease:
description: 'Publish new release'
type: boolean
default: false
required: false
tag:
type: string
description: 'Release version tag (e.g. v1.2.3)'
required: true
ref:
type: string
description: 'Git ref from which to release'
required: true
default: 'main'
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Check runner architecture
run: uname -m
- name: Check-out repository
uses: actions/checkout@v1
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
architecture: 'arm64'
- name: Install Dependencies
run: |
pip install -r requirements.txt
pip install nuitka
- name: Build Executable with Nuitka
run: |
python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist --macos-target-arch=arm64 gofilecli.py
python -m nuitka --onefile --assume-yes-for-downloads --output-dir=dist_x86_64 --macos-target-arch=x86_64 gofilecli.py
- name: Upload Artifact [osx-arm64]
uses: actions/upload-artifact@v3.1.3
with:
name: GoFileCLI_osx-x64
path: dist_x86_64/gofilecli.bin
- name: Upload Artifact [osx-arm64]
uses: actions/upload-artifact@v3.1.3
with:
name: GoFileCLI_osx-arm64
path: dist/gofilecli.bin
download:
runs-on: ubuntu-latest
needs: [build-macos]
steps:
- name: Fetch executables
uses: actions/download-artifact@v3
- name: List Files
run: |
ls -la