Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "feat: Cross-compile and release for intel and arm architectures" #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 14 additions & 20 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ permissions:

jobs:
build:
strategy:
matrix:
machine: [ubuntu-latest, self-hosted-arm64]
runs-on: ${{ matrix.machine }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
Expand All @@ -28,24 +25,21 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install libcurl4-openssl-dev
sudo apt update
sudo apt install libcurl4-openssl-dev
- name: Build with Gradle
run: ./gradlew commonBinaries
- name: Move and apply correct permissions to binary
run: |
cp build/bin/common/releaseExecutable/slack-notifier-cli.kexe ./slack-notifier-cli-${{ runner.arch }}
chmod +x ./slack-notifier-cli-${{ runner.arch }}
cp build/bin/common/releaseExecutable/slack-notifier-cli.kexe ./slack-notifier-cli
chmod +x ./slack-notifier-cli
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: slack-notifier-cli-${{ runner.arch }}
path: slack-notifier-cli-${{ runner.arch }}
publish:
strategy:
matrix:
machine: [ubuntu-latest, self-hosted-arm64]
runs-on: ${{ matrix.machine }}
name: slack-notifier-cli
path: slack-notifier-cli
change-log:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
steps:
Expand All @@ -64,15 +58,15 @@ jobs:
output: "console"
slack-token: ${{ secrets.SLACK_APP_TOKEN }}
slack-channel: "#releases"
- name: Download executable
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: slack-notifier-cli-${{ runner.arch }}
- name: Publish executable as release asset
name: slack-notifier-cli
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: slack-notifier-cli-${{ runner.arch }}
asset_name: slack-notifier-cli-${{ runner.arch }}
file: slack-notifier-cli
asset_name: slack-notifier-cli
tag: ${{ github.ref }}
overwrite: true