add link_with in add_project_dependencies #398
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
# SPDX-FileCopyrightText: Stone Tickle <[email protected]> | |
# SPDX-License-Identifier: GPL-3.0-only | |
name: macos | |
on: | |
push: | |
branches: | |
- master | |
- '[0-9]+.[0-9]+' | |
pull_request: | |
branches: [master] | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
jobs: | |
macos: | |
runs-on: macos-latest | |
environment: master | |
steps: | |
- uses: actions/checkout@v3 | |
- name: deps | |
run: | | |
set -x | |
mkdir -p build | |
arch | |
curl -L -o build/pkgconf-1.9.3.tar.gz https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-1.9.3.tar.gz | |
tar xvf build/pkgconf-1.9.3.tar.gz | |
mv pkgconf-pkgconf-1.9.3 subprojects/pkgconf | |
- name: build | |
run: | | |
./bootstrap.sh build | |
PATH="build:$PATH" build/muon-bootstrap -v setup build | |
build/muon-bootstrap -C build samu | |
- name: test | |
run: | | |
build/muon -C build test -v -ddots | |
- name: build-x86_64 | |
run: | | |
arch -x86_64 sh -c " | |
./bootstrap.sh build-x86_64 &&\ | |
PATH=\"build-x86_64:$PATH\" build-x86_64/muon-bootstrap -v setup build-x86_64 &&\ | |
build-x86_64/muon-bootstrap -C build-x86_64 samu\ | |
" | |
- name: build-universal-binary | |
run: | | |
. "build/version.sh" | |
lipo -create -output muon build-x86_64/muon build/muon | |
zip "muon-$version-universal-macos.zip" muon | |
- name: upload-universal-binary | |
env: | |
GH_DEPLOY: 1 | |
run: | | |
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/deploy | |
chmod 600 ~/.ssh/deploy | |
cat >> ~/.ssh/config <<EOF | |
Host mochiro.moe | |
IdentityFile ~/.ssh/deploy | |
IdentitiesOnly yes | |
EOF | |
. "build/version.sh" | |
tools/ci/deploy.sh "/releases/$version" \ | |
"muon-$version-universal-macos.zip" | |
if: github.event_name != 'pull_request' |