Skip to content
Open
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/actions/build-x86_64_linux_gnu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build x86_64_linux_gnu

runs:
using: composite
steps:
- name: get system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libgl1-mesa-dev \
xorg-dev \
libxi-dev \
libxcursor-dev \
libxrandr-dev \
libxinerama-dev \
libxxf86vm-dev \
libgl1-mesa-dev \
libx11-dev \
libxext-dev \
libwayland-dev \
libwayland-egl1-mesa \
libwayland-egl-backend-dev \
pkg-config
shell: bash

- name: compile
run: |
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/hexecute-x86_64-linux-gnu .
shell: bash
11 changes: 11 additions & 0 deletions .github/actions/build-x86_64_linux_nix/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: build x86_64_linux_nix

runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- run: nix build .
shell: bash
23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/publish-x86_64_linux_gnu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build and upload generic release binary

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21

- uses: ./.github/actions/build-x86_64_linux_gnu

- name: publish binary to release page
uses: softprops/action-gh-release@v2
with:
files: dist/hexecute-x86_64-linux-gnu
17 changes: 17 additions & 0 deletions .github/workflows/publish-x86_64_linux_nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: build and upload nix release binary

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build-x86_64_linux_nix

- name: publish binary to release page
uses: softprops/action-gh-release@v2
with:
files: result/bin/hexecute-x86_64_linux_nix
21 changes: 21 additions & 0 deletions .github/workflows/push-build-x86_64_linux_gnu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build and upload generic release binary

on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21

- uses: ./.github/actions/build-x86_64_linux_gnu

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hexecute
path: ./result/bin-x86_64_linux_gnu