try using MacPorts instead of brew in runner
This commit is contained in:
@@ -10,27 +10,52 @@ on:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
install-macports-on-macos-11:
|
||||
runs-on: macos-11
|
||||
name: 'Install MacPorts 2.9.3 on MacOS 11'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: melusina-org/setup-macports@v1
|
||||
id: 'macports'
|
||||
with:
|
||||
parameters: 'testsuite/run-testsuite-on-macos-11.yaml'
|
||||
- name: 'Validate installed MacPorts version'
|
||||
run: >-
|
||||
test "$(port version)" = 'Version: 2.9.3'
|
||||
- name: 'Validate transmitted MacPorts prefix'
|
||||
run: >-
|
||||
test "${{ steps.macports.outputs.prefix }}" = '/opt/local'
|
||||
- name: 'Validate transmitted MacPorts version'
|
||||
run: >-
|
||||
test "${{ steps.macports.outputs.version }}" = '2.9.3'
|
||||
|
||||
install-macports-on-macos-12:
|
||||
runs-on: macos-12
|
||||
name: 'Install MacPorts 2.9.3 on MacOS 12'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: 'Run testsuite'
|
||||
run: development/testsuite
|
||||
- uses: melusina-org/setup-macports@v1
|
||||
with:
|
||||
parameters: 'testsuite/run-testsuite-on-macos-12.yaml'
|
||||
- run: port version
|
||||
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Xcode
|
||||
uses: maxim-lobanov/setup-xcode@v1
|
||||
with:
|
||||
xcode-version: latest
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.21'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: brew install --force mpv && brew install dylibbundler
|
||||
run: sudo port install mpv +libmpv && sudo port install dylibbundler
|
||||
|
||||
- name: Setup path
|
||||
run: export C_INCLUDE_PATH=/usr/local/include:/opt/homebrew/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/usr/local/lib:/opt/homebrew/lib:$LIBRARY_PATH
|
||||
run: export C_INCLUDE_PATH=/usr/local/include:$C_INCLUDE_PATH && export LIBRARY_PATH=/usr/local/lib:$LIBRARY_PATH
|
||||
|
||||
- name: Build
|
||||
run: go build
|
||||
|
||||
Reference in New Issue
Block a user