Skip to content

Release 0.0.11

Release 0.0.11 #56

Workflow file for this run

# https://github.com/marketplace/actions/go-release-binaries
name: Build carbonapp
on:
push:
branches:
- main
tags:
- '*'
release:
types: [created]
jobs:
fyne-cross-and-release:
name: build and release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- name: install packages
run: |
go version
sudo apt update
sudo apt-get -y install bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb
go install github.com/fyne-io/fyne-cross@latest
go install github.com/tcnksm/ghr@latest
- name: compile
run: |
export PATH=$PATH:~/go/bin
fyne-cross linux -output carbonapp -arch=amd64,arm64 -debug .
ls -lR fyne-cross
- name: rename
run: |
mv fyne-cross/dist/linux-arm64/carbonapp.tar.xz fyne-cross/dist/linux-arm64/carbonapp-arm64.tar.xz
mv fyne-cross/dist/linux-amd64/carbonapp.tar.xz fyne-cross/dist/linux-amd64/carbonapp-amd64.tar.xz
#sudo apt update
#sudo apt-get -y install bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb
#sudo apt-get -y install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev gcc pkg-config libxxf86vm-dev
- name: release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
#- name: Upload artifacts for linux-amd64
# uses: actions/upload-artifact@v4
# with:
# name: carbonapp-amd64
# path: fyne-cross/dist/linux-amd64/
#- name: Upload artifacts for linux-arm64
# uses: actions/upload-artifact@v4
# with:
# name: carbonapp-arm64
# path: fyne-cross/dist/linux-arm64/
- name: Release dist linux-amd64
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: fyne-cross/dist/linux-amd64/carbonapp-amd64.tar.xz
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GHR_REPLACE: true
- name: Release dist linux-arm64
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: fyne-cross/dist/linux-arm64/carbonapp-arm64.tar.xz
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GHR_REPLACE: true