Skip to content

Update gocryptfs binary to version v2.4.0-33-gf06f27e #7

Update gocryptfs binary to version v2.4.0-33-gf06f27e

Update gocryptfs binary to version v2.4.0-33-gf06f27e #7

name: Build gocryptfs for ARM64 and package as Magisk module
on:
push:
branches: [ workflows ]
pull_request:
branches: [ workflows ]
workflow_dispatch:
jobs:
build:
runs-on: buildjet-4vcpu-ubuntu-2204-arm
steps:
- name: Checkout gocryptfs
uses: actions/checkout@v3
with:
repository: rfjakob/gocryptfs
ref: master
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev libfuse-dev pkg-config
- name: Generate go.sum
run: go mod tidy
- name: Get version info
run: echo "version=$(git describe --tags HEAD)" >> $GITHUB_ENV
- name: Build gocryptfs
run: |
go build -ldflags "-X main.GitVersion=${{ env.version }} -X main.GitVersionFuse=${{ env.version }} -X main.BuildDate=$(date +%Y-%m-%d) \
-linkmode external -extldflags '-fno-PIC -static -Wl,--dynamic-linker=/system/bin/linker64'" -buildmode=pie -tags without_openssl -o gocryptfs
- name: Strip debug information
run: strip gocryptfs
- name: Checkout gocryptfs-magisk repository
uses: actions/checkout@v3
with:
repository: swazau/gocryptfs-magisk
path: gocryptfs-magisk
token: ${{ secrets.ACTIONS_SECRET }}
- name: Copy binary to Magisk module folder
run: |
mkdir -p gocryptfs-magisk/system/bin
cp gocryptfs gocryptfs-magisk/system/bin/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.ACTIONS_SECRET }}
path: gocryptfs-magisk
branch: update-gocryptfs-binary
title: Update gocryptfs binary to version ${{ env.version }}
body: |
Automated update of gocryptfs binary to version ${{ env.version }}.
This pull request updates the gocryptfs binary in the Magisk module to the latest build version.
commit-message: Update gocryptfs binary to version ${{ env.version }}
delete-branch: true