{"id":23398819,"url":"https://github.com/mbround18/setup-osxcross","last_synced_at":"2025-04-11T17:24:53.998Z","repository":{"id":55459420,"uuid":"523011824","full_name":"mbround18/setup-osxcross","owner":"mbround18","description":"Github Action for setting up osxcross in a github action for cross compiling from Linux to Mac","archived":false,"fork":false,"pushed_at":"2024-02-18T02:51:23.000Z","size":36,"stargazers_count":16,"open_issues_count":6,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T16:25:58.015Z","etag":null,"topics":["c","cross-platform","github","github-actions","linux","mac","rust"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbround18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-09T15:42:31.000Z","updated_at":"2024-02-13T19:16:27.000Z","dependencies_parsed_at":"2024-03-24T19:00:23.637Z","dependency_job_id":null,"html_url":"https://github.com/mbround18/setup-osxcross","commit_stats":{"total_commits":48,"total_committers":2,"mean_commits":24.0,"dds":0.02083333333333337,"last_synced_commit":"db5f7375bfb6f7d1d588d0abc99a0a916a47cecf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fsetup-osxcross","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fsetup-osxcross/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fsetup-osxcross/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbround18%2Fsetup-osxcross/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbround18","download_url":"https://codeload.github.com/mbround18/setup-osxcross/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248448543,"owners_count":21105321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cross-platform","github","github-actions","linux","mac","rust"],"created_at":"2024-12-22T09:49:33.530Z","updated_at":"2025-04-11T17:24:53.978Z","avatar_url":"https://github.com/mbround18.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setup osxcross\n\nGithub Action for setting up osxcross in a github action.\n\n## Sources \u0026 Shoutouts\n\n- [Thank you to James Waples for posting this article!](https://wapl.es/rust/2019/02/17/rust-cross-compile-linux-to-macos.html)\n\n## Usage\n\n```yaml\n# Setup Rust, use the x86_64-apple-darwin target but the rest can be customized.\n- uses: ATiltedTree/setup-rust@v1\n  with:\n    targets: x86_64-apple-darwin\n    rust-version: nightly\n\n# Use the v1 of this action\n- uses: mbround18/setup-osxcross@v1\n  # This builds executables \u0026 sets env variables for rust to consume.\n  with:\n    osx-version: \"12.3\"\n\n# Checkout your code\n- name: Clone your Code\n  uses: actions/checkout@v3\n\n# Build your code for apple-darwin based release\n- name: Build Your Code\n  run: cargo build --release --target x86_64-apple-darwin\n```\n\n## ZLIB and C/++ compilations\n\nIf you run into issues were you have zlib or have c as a dependenacy consider setting the following in your env.\n\n\n```sh\n# Make libz-sys (git2-rs -\u003e libgit2-sys -\u003e libz-sys) build as a statically linked lib\n# This prevents the host zlib from being linked\nexport LIBZ_SYS_STATIC=1\n\n# Use Clang for C/C++ builds\nexport CC=o64-clang\nexport CXX=o64-clang++\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbround18%2Fsetup-osxcross","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbround18%2Fsetup-osxcross","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbround18%2Fsetup-osxcross/lists"}