mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-09 15:19:11 +02:00
fix: auto-update, build_artifacts & release workflows were broken
This commit is contained in:
parent
8322123cf1
commit
1d985bd254
4 changed files with 23 additions and 22 deletions
10
.github/workflows/build_artifacts.yml
vendored
10
.github/workflows/build_artifacts.yml
vendored
|
|
@ -51,15 +51,15 @@ jobs:
|
|||
run: mkdir -p bin
|
||||
- name: Renaming binaries [Windows]
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: mv target/release/uad_gui.exe bin/uad_gui-${{ matrix.build_target }}${{ matrix.renderer }}.exe
|
||||
run: mv target/release/uad-ng.exe bin/uad-ng-${{ matrix.build_target }}${{ matrix.renderer }}.exe
|
||||
- name: Renaming binaries [Others]
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: mv target/release/uad_gui bin/uad_gui${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}
|
||||
run: mv target/release/uad-ng bin/uad-ng${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}
|
||||
- name: Tarball Linux/MacOS binary
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: tar -czf bin/uad_gui${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}{.tar.gz,}
|
||||
run: tar -czf bin/uad-ng${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}{.tar.gz,}
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: uad_gui${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}
|
||||
path: bin/uad_gui-*
|
||||
name: uad-ng${{ matrix.update_name }}-${{ matrix.build_target }}${{ matrix.renderer }}
|
||||
path: bin/uad-ng-*
|
||||
|
|
|
|||
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -2,16 +2,16 @@ name: Continuous Integration
|
|||
on:
|
||||
push:
|
||||
paths:
|
||||
- "**.rs"
|
||||
- "Cargo.lock"
|
||||
- "Cargo.toml"
|
||||
- "**.json"
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- resources/assets/*.ttf
|
||||
- src/**
|
||||
pull_request:
|
||||
paths:
|
||||
- "**.rs"
|
||||
- "Cargo.lock"
|
||||
- "Cargo.toml"
|
||||
- "**.json"
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- resources/assets/*.ttf
|
||||
- src/**
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
|
|
|
|||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -5,9 +5,10 @@ on:
|
|||
branches:
|
||||
- main
|
||||
paths:
|
||||
- "**.rs"
|
||||
- "Cargo.lock"
|
||||
- "Cargo.toml"
|
||||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- resources/assets/*.ttf
|
||||
- src/**
|
||||
tags-ignore:
|
||||
- dev-build
|
||||
|
||||
|
|
@ -18,6 +19,7 @@ jobs:
|
|||
build:
|
||||
uses: ./.github/workflows/build_artifacts.yml
|
||||
release:
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
permissions:
|
||||
|
|
@ -29,11 +31,10 @@ jobs:
|
|||
with:
|
||||
path: bin
|
||||
- name: Create pre-release
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
body_path: ${{ github.workspace }}/CHANGELOG.md
|
||||
files: bin/*/uad_gui-*
|
||||
files: bin/*/uad-ng-*
|
||||
prerelease: true
|
||||
# - name: Update dev-build tag
|
||||
# if: ${{ github.event_name == 'push' }}
|
||||
|
|
@ -47,6 +48,6 @@ jobs:
|
|||
# uses: softprops/action-gh-release@v1
|
||||
# with:
|
||||
# generate_release_notes: true
|
||||
# files: bin/*/uad_gui-*
|
||||
# files: bin/*/uad-ng-*
|
||||
# prerelease: true
|
||||
# tag_name: ${{ env.dev_tag }}
|
||||
|
|
|
|||
|
|
@ -229,17 +229,17 @@ pub fn extract_binary_from_tar(archive_path: &Path, temp_file: &Path) -> io::Res
|
|||
pub const fn bin_name() -> &'static str {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
"uad_gui.exe"
|
||||
"uad-ng.exe"
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
"uad_gui-macos"
|
||||
"uad-ng-macos"
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "windows")))]
|
||||
{
|
||||
"uad_gui-linux"
|
||||
"uad-ng-linux"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue