{"id":20699720,"url":"https://github.com/napi-rs/cross-build","last_synced_at":"2025-04-22T22:25:52.428Z","repository":{"id":63553878,"uuid":"566170641","full_name":"napi-rs/cross-build","owner":"napi-rs","description":"Cross build examples","archived":false,"fork":false,"pushed_at":"2025-04-09T19:55:43.000Z","size":6539,"stargazers_count":35,"open_issues_count":4,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T20:43:10.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://napi.rs/docs/cross-build/summary","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/napi-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-11-15T05:22:59.000Z","updated_at":"2024-11-12T15:55:50.000Z","dependencies_parsed_at":"2023-11-14T12:27:23.976Z","dependency_job_id":"b5be5afb-d232-491c-bbf7-df40c2988bc0","html_url":"https://github.com/napi-rs/cross-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fcross-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fcross-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fcross-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/napi-rs%2Fcross-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/napi-rs","download_url":"https://codeload.github.com/napi-rs/cross-build/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250333122,"owners_count":21413332,"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":[],"created_at":"2024-11-17T00:31:37.934Z","updated_at":"2025-04-22T22:25:52.401Z","avatar_url":"https://github.com/napi-rs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cross build multi-platform addons on a single system\n\nNAPI-RS is aiming to provide a complete solution for building Node.js native addons, especially for enterprise users.\n\nFor the open-source projects on GitHub, NAPI-RS provided out-of-box CI/CD support for building and publishing prebuilt binaries for Windows, Linux macOS and FreeBSD with NAPI-RS v2. There are also many users who are using self-hosted CI and want to build native addons for multiple platforms on a single system (mostly Linux). NAPI-RS v2 provides a solution for this use case. \n\nThis project is a demo for those users who want to build multi-platform addons on a single system. The CI of this project builds NAPI-RS packages on a GitHub Linux CI, and produces addons for the following platform:\n\n* Windows x64\n* Windows x86\n* Windows arm64\n* macOS x64\n* macOS arm64\n* Linux x64 gnu (`glibc` 2.17)\n* Linux x64 musl\n* Linux arm64 gnu (`glibc` 2.17)\n* Linux arm64 musl\n* Linux armv7 gnueabihf\n* Android arm64\n* Android armv7\n\nIf you are building NAPI-RS packages with self-hosted Linux CI, you should install the following toolchain to build the addons for the above platforms:\n\n* `Rust` toolchain, including `Cargo`, `rustup` and your target rust std. eg: `rustup target add aarch64-apple-darwin`.\n- `llvm`. The latest *qualification* version is recommended.\n- `cargo-xwin` if you want to build for Windows on the non Windows system. `cargo install cargo-xwin`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Fcross-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnapi-rs%2Fcross-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnapi-rs%2Fcross-build/lists"}