Skip to content

Commit

Permalink
macOS automated fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
swazau committed Jun 24, 2024
1 parent da004eb commit d21f41e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,37 @@ on:
jobs:
build:
runs-on: macos-latest

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 macOS dependencies
run: |
brew update
brew install openssl 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: |
cd cmd/gocryptfs
go build -ldflags "-X github.com/rfjakob/gocryptfs/v2/internal/configfile.GitVersion=${{ env.version }} -X github.com/rfjakob/gocryptfs/v2/internal/configfile.GitVersionFuse=${{ env.version }} -X github.com/rfjakob/gocryptfs/v2/internal/configfile.BuildDate=$(date +%Y-%m-%d)" -o gocryptfs
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gocryptfs-m1
path: ./cmd/gocryptfs/gocryptfs
path: ./gocryptfs

0 comments on commit d21f41e

Please sign in to comment.