Skip to content

Commit

Permalink
update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 30, 2024
1 parent db0d6e8 commit c54c4f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 59 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build Lantern

on:
push:
branches: atavism/ci-updates
workflow_call:
inputs:
version:
Expand All @@ -29,6 +27,9 @@ on:
xcode_version:
type: string
required: true
macos_version:
type: string
required: true

env:
GOPRIVATE: github.com/getlantern
Expand Down
64 changes: 7 additions & 57 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish releases
on:
# Triggers the workflow on push when pushing to a version tag
push:
branches:
- atavism/ci-updates
tags:
- '*lantern-*'
workflow_run:
Expand Down Expand Up @@ -91,42 +93,8 @@ jobs:
print(f'::set-output name=prefix::{li}')
print(f'::set-output name=version_file::{vf}')
build-linux:
uses: ./.github/workflows/build-linux.yml
secrets: inherit
needs: set-version
with:
version: ${{ needs.set-version.outputs.version }}
prefix: ${{ needs.set-version.outputs.prefix }}
dist-suffix: x64

# build-windows-x32:
# uses: ./.github/workflows/build-windows.yml
# secrets: inherit
# needs: set-version
# with:
# version: ${{ needs.set-version.outputs.version }}
# prefix: ${{ needs.set-version.outputs.prefix }}
# dist-suffix: 32-bit
# installer-suffix: -x32
# update-suffix: 386
# arch: x32

build-windows-x64:
uses: ./.github/workflows/build-windows.yml
secrets: inherit
needs: set-version
with:
version: ${{ needs.set-version.outputs.version }}
prefix: ${{ needs.set-version.outputs.prefix }}
build-suffix: 64
dist-suffix: 64-bit
update-suffix: x64
installer-suffix: -x64
arch: x64

build-darwin:
uses: ./.github/workflows/build-darwin.yml
build:
uses: ./.github/workflows/build.yml
secrets: inherit
needs: set-version
with:
Expand All @@ -135,30 +103,12 @@ jobs:
version: ${{ needs.set-version.outputs.version }}
version_file: ${{ needs.set-version.outputs.version_file }}
prefix: ${{ needs.set-version.outputs.prefix }}

build-ios:
uses: ./.github/workflows/build-ios.yml
secrets: inherit
needs: set-version
with:
macos_version: macos-14
xcode_version: latest-stable
version: ${{ needs.set-version.outputs.version }}
version_file: ${{ needs.set-version.outputs.version_file }}
prefix: ${{ needs.set-version.outputs.prefix }}

build-android:
uses: ./.github/workflows/build-android.yml
secrets: inherit
needs: set-version
with:
version: ${{ needs.set-version.outputs.version }}
version_file: ${{ needs.set-version.outputs.version_file }}
prefix: ${{ needs.set-version.outputs.prefix }}
installer-suffix: -x64
arch: x64

push-binaries:
runs-on: ubuntu-latest
needs: [ set-version, build-android, build-ios, build-darwin, build-linux, build-windows-x64 ]
needs: [ set-version, build ]
env:
version: ${{ needs.set-version.outputs.version }}
prefix: ${{ needs.set-version.outputs.prefix }}
Expand Down

0 comments on commit c54c4f0

Please sign in to comment.