Skip to content

Commit

Permalink
enable rattler-build
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnachun committed Dec 3, 2024
1 parent ee9fd3e commit 4758889
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 43 deletions.
7 changes: 4 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ bot:
automerge: true
build_platform:
osx_arm64: osx_64
github:
branch_name: main
tooling_branch_name: main
conda_build:
error_overlinking: true
conda_build_tool: rattler-build
conda_forge_output_validation: true
github:
branch_name: main
tooling_branch_name: main
provider:
linux_aarch64: azure
linux_ppc64le: azure
Expand Down
3 changes: 3 additions & 0 deletions recipe/bld.bat → recipe/build.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
set CARGO_PROFILE_RELEASE_STRIP=symbols
set CARGO_PROFILE_RELEASE_LTO=fat

:: check licenses
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml || goto :error

Expand Down
6 changes: 3 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

set -o xtrace -o nounset -o pipefail -o errexit

export CARGO_PROFILE_RELEASE_STRIP=symbols
export CARGO_PROFILE_RELEASE_LTO=fat

cargo-bundle-licenses \
--format yaml \
--output THIRDPARTY.yml

# build statically linked binary with Rust
cargo install --bins --no-track --locked --root ${PREFIX} --path apps/oxlint

# strip debug symbols
"$STRIP" "$PREFIX/bin/$PKG_NAME"
37 changes: 0 additions & 37 deletions recipe/meta.yaml

This file was deleted.

37 changes: 37 additions & 0 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
context:
version: 0.14.0

package:
name: oxlint
version: ${{ version }}

source:
url: https://github.com/oxc-project/oxc/archive/oxlint_v${{ version }}.tar.gz
sha256: a28977286c74350c2f30a04e828c03a58860fb44a7c21cba5d0de8eb0c94ee48

build:
number: 0

requirements:
build:
- ${{ compiler('rust') }}
- ${{ compiler('c') }}
- ${{ stdlib('c') }}
- cargo-bundle-licenses

tests:
- script:
- oxlint --help

about:
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Linter for oxc
homepage: https://github.com/oxc-project/oxc
repository: https://github.com/oxc-project/oxc

extra:
recipe-maintainers:
- danielnachun

0 comments on commit 4758889

Please sign in to comment.