added seperate binary check add manual v2 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check gocryptfs binary | |
on: | |
push: | |
branches: [ workflows ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
check_binary: | |
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' | |
runs-on: buildjet-4vcpu-ubuntu-2204-arm | |
steps: | |
- name: Checkout gocryptfs-magisk repository | |
uses: actions/checkout@v3 | |
with: | |
repository: swazau/gocryptfs-magisk | |
ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
- name: Set execute permission | |
run: chmod +x ./system/bin/gocryptfs | |
- name: Check binary version | |
run: | | |
./system/bin/gocryptfs --version | |
echo "Binary version: $(./system/bin/gocryptfs --version)" | |
- name: Check binary file type | |
run: | | |
file ./system/bin/gocryptfs | |
echo "File type: $(file ./system/bin/gocryptfs)" | |
- name: Check binary execution | |
run: | | |
./system/bin/gocryptfs --help | |
echo "Binary execution successful" | |
# Add more checks as needed |