Skip to content

Commit

Permalink
Use gstreamer pkg for mac install
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Sep 17, 2020
1 parent f2153ee commit cf2e71b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,17 @@ jobs:
name: amd64_rpm_package_fc32
path: "target/release/rpmbuild/RPMS/x86_64/neolink-${{ steps.toml.outputs.version }}-1.fc32.x86_64.rpm"
# X86_64 Macos
# Notes: Uses the packgebuild app http://s.sudre.free.fr/Software/documentation/Packages
# Notes: Uses the packagebuild app http://s.sudre.free.fr/Software/documentation/Packages
package_osx:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install gst-rtsp-server gst-plugins-good gst-plugins-bad glib
curl -L 'https://gstreamer.freedesktop.org/data/pkg/osx/1.16.2/gstreamer-1.0-devel-1.16.2-x86_64.pkg' -o "$(pwd)/gstreamer-devel.pkg"
sudo installer -verbose -pkg "$(pwd)/gstreamer-devel.pkg" -target /
PKG_CONFIG_PATH="/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"
echo ":set-env name=PKG_CONFIG_PATH::${PKG_CONFIG_PATH}"
- name: Install latest rust
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -182,20 +185,22 @@ jobs:
- uses: actions/checkout@v2
- name: Install Gstreamer
run: |
$curlgst = Start-Job -ScriptBlock { curl.exe -fsSL "https://gstreamer.freedesktop.org/data/pkg/windows/1.16.2/gstreamer-1.0-devel-msvc-x86_64-1.16.2.msi" -o gstreamer-1.0-devel.msi }
choco install -y --no-progress gstreamer
choco install -y --no-progress pandoc
echo "Installing gstreamer-1.0-devel"
Wait-Job $curlgst
msiexec /i gstreamer-1.0-devel.msi /qn /norestart
echo "Updating Environment"
choco install -y --no-progress gstreamer --version=1.16.2.20200527
choco install -y --no-progress gstreamer-devel --version=1.16.2
echo "Updating Cargo environment"
echo "::add-path::C:\gstreamer\1.0\x86_64\bin"
echo "::set-env name=GSTREAMER_1_0_ROOT_X86_64::C:\gstreamer\1.0\x86_64\"
- name: Build neolink
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Install pandoc
run: |
choco install pandoc
- name: Install wix
run: |
choco install wixtoolset
- name: Install cargo wix
uses: actions-rs/install@v0.1
with:
Expand Down

0 comments on commit cf2e71b

Please sign in to comment.