mirror of
https://github.com/NohamR/GoFileCLI.git
synced 2026-03-20 16:09:58 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
825ad69828 | ||
|
|
1ffa55f19f | ||
|
|
7e0e04a964 | ||
|
|
b0b1b1d197 | ||
|
|
f2dbeefa1f | ||
|
|
d7660d4c9b | ||
|
|
53d1d85ac5 |
47
.github/workflows/release.yml
vendored
47
.github/workflows/release.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check-out repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
onefile: true
|
||||
|
||||
- name: Upload Artifact[win-x64]
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: GoFileCLI_win-x64
|
||||
path: |
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
run: uname -m
|
||||
|
||||
- name: Check-out repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
onefile: true
|
||||
|
||||
- name: Upload Artifact[linux-x64]
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: GoFileCLI_linux-x64
|
||||
path: |
|
||||
@@ -101,7 +101,7 @@ jobs:
|
||||
run: uname -m
|
||||
|
||||
- name: Check-out repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Setup Python
|
||||
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_x86_64 --macos-target-arch=x86_64 gofilecli.py
|
||||
|
||||
- name: Upload Artifact[osx-arm64]
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Upload Artifact [osx-arm64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: GoFileCLI_osx-x64
|
||||
path: |
|
||||
dist_x86_64/gofilecli.bin
|
||||
path: dist_x86_64/gofilecli.bin
|
||||
|
||||
- name: Upload Artifact[osx-arm64]
|
||||
uses: actions/upload-artifact@v4
|
||||
- name: Upload Artifact [osx-arm64]
|
||||
uses: actions/upload-artifact@v3.1.3
|
||||
with:
|
||||
name: GoFileCLI_osx-arm64
|
||||
path: |
|
||||
dist/gofilecli.bin
|
||||
path: dist/gofilecli.bin
|
||||
|
||||
create_draft_release:
|
||||
name: Create Github draft release
|
||||
@@ -178,7 +176,7 @@ jobs:
|
||||
attach_to_release:
|
||||
name: Attach native executables to release
|
||||
if: ${{ github.event.inputs.doRelease == 'true' }}
|
||||
needs: create_draft_release
|
||||
needs: [create_draft_release]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get current date
|
||||
@@ -190,22 +188,17 @@ jobs:
|
||||
|
||||
- name: Fetch executables
|
||||
uses: actions/download-artifact@v3
|
||||
|
||||
- name: List downloaded files
|
||||
run: |
|
||||
echo "Listing files in the working directory:"
|
||||
ls -R
|
||||
|
||||
- name: Tar (linux, macOS)
|
||||
run: |
|
||||
for file in *{osx,linux}*; do
|
||||
if [ -f "$file" ]; then
|
||||
tar cvzfp "${file}_${{ env.date }}.tar.gz" "$file"
|
||||
fi
|
||||
done
|
||||
|
||||
run: for dir in *{osx,linux}*; do tar cvzfp "${dir}_${{ env.date }}.tar.gz" "$dir"; done
|
||||
|
||||
- name: Zip (windows)
|
||||
run: |
|
||||
for file in *win*; do
|
||||
if [ -f "$file" ]; then
|
||||
zip -r "${file}_${{ env.date }}.zip" "$file"
|
||||
fi
|
||||
done
|
||||
run: for dir in *win*; do zip -r "${dir}_${{ env.date }}.zip" "$dir"; done
|
||||
|
||||
- name: Upload
|
||||
run: |
|
||||
|
||||
74
.github/workflows/releasetemp.yml
vendored
Normal file
74
.github/workflows/releasetemp.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user