mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-21 11:48:58 +00:00
f9b2857dce
* add miniupnpc_wheels_yml * cp --recursive --verbose cloned/miniupnpc source * --dereference * reduce legibility to -RLv for macOS * try qemu for linux aarch64 * use macos-latest for macOS ARM64 and cross build * only setup qemu for linux * skip install test for macos arm64 since we are cross building * force all CIBW_ARCHS * skip install test for all arm since we are cross building * copy in actions * setup for windows exclusion before merge * add 3.12 * update from upstream * macos arm runners, supposedly * checkout before local actions * cloned/ * _MACOS * multiple cibuildwheel pins * more cloned/ * exclude macos arm 3.7-3.9 due to python unavailability from github actions * yup * actions/setup-python@v5 * update pip * maybe actually use qemu for linux arm * oops * more explicit in docker * -m * hmm * aarch64 * aarch64 _and_ arm64 * ... * try calling out os/arch labels for the runner * Revert "try calling out os/arch labels for the runner" This reverts commit 51f1f43e6b11b83433eb297a1ba0a15ef9e06702. * add copyright and license notices * exclude windows, cleanup
48 lines
1.4 KiB
Python
48 lines
1.4 KiB
Python
# Copyright 2024 Chia Network Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import json
|
|
import os
|
|
import pathlib
|
|
import sys
|
|
|
|
directories = [
|
|
pathlib.Path(directory).absolute()
|
|
for directory in json.loads(os.environ["INPUT_DIRECTORIES"])
|
|
]
|
|
github_env = pathlib.Path(os.environ["GITHUB_ENV"])
|
|
github_path = pathlib.Path(os.environ["GITHUB_PATH"])
|
|
|
|
for directory in directories:
|
|
if directory.exists():
|
|
break
|
|
|
|
print(f"No environment found at: {os.fspath(directory)}")
|
|
else:
|
|
print("No environment found")
|
|
sys.exit(1)
|
|
|
|
print(f"Environment found at: {os.fspath(directory)}")
|
|
|
|
if sys.platform == "win32":
|
|
bin_scripts_path = directory.joinpath("Scripts")
|
|
else:
|
|
bin_scripts_path = directory.joinpath("bin")
|
|
|
|
with github_path.open("a") as file:
|
|
print(os.fspath(bin_scripts_path), file=file)
|
|
|
|
with github_env.open("a") as file:
|
|
print(f"VIRTUAL_ENV={os.fspath(directory)}", file=file)
|