forked from emacs-ng/emacs-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gh action to vendor Cargo source
- Loading branch information
1 parent
03bd58e
commit aa71369
Showing
4 changed files
with
59 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
watch_file nix/* flake.nix | ||
{ | ||
mkdir -p "$(direnv_layout_dir)" | ||
eval "$(nix print-dev-env --no-update-lock-file --no-write-lock-file --profile $(direnv_layout_dir)/flake-profile)" | ||
} || use nix | ||
export GUILE_LOAD_PATH="$HOME/src/guix-channel/:$GUILE_LOAD_PATH" | ||
use guix | ||
|
||
export RUST_SRC_PATH="$HOME/src/rust/library" | ||
|
||
export LD_LIBRARY_PATH=$LIBRARY_PATH | ||
rm /tmp/cc | ||
ln -s $(guix build clang)/bin/clang /tmp/cc | ||
export PATH=$PATH:/tmp | ||
export LIBCLANG_PATH=$(guix build clang)/lib | ||
unset EMACSLOADPATH | ||
unset EMACSNATIVELOADPATH |
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
if [[ -z $@ ]]; then | ||
echo "Usage: ./vendor_cargo_source.sh <emacs_version>" | ||
fi | ||
|
||
mkdir -p .cargo | ||
cargo vendor ./third_party/rust --respect-source-config > \ | ||
.cargo/config.toml | ||
|
||
git config --global user.email "[email protected]" | ||
git config --global user.name "github bot" | ||
git config tar.tar.xz.command "xz -c" | ||
git add -f ./third_party/rust | ||
git add .cargo/config.toml | ||
git commit --no-verify -m "Vendor Cargo Source" | ||
|
||
prefix=emacs-ng_$1 | ||
|
||
git archive --prefix=$prefix/ HEAD -o $prefix.tar.xz |