Skip to content

Commit

Permalink
Don't regen specs
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Sep 29, 2019
1 parent 3e93d3b commit f33707d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
16 changes: 1 addition & 15 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ install:
build_script:
- set TARGET_ARTIFACT=lib%NAME%.dll.bodged-%TARGET_ARCH%-windows-%APPVEYOR_REPO_TAG_NAME%
- set SPEC_ARCHIVE=%TARGET_ARTIFACT%-spec.zip
- >
sh -c "
cd src/lib/
Expand All @@ -45,32 +44,19 @@ build_script:
-DGLFW_BUILD_DOCS=OFF -DGLFW_INSTALL=OFF -DGLFW_BUILD_EXAMPLES=OFF .
&& make"
- mv %APPVEYOR_BUILD_FOLDER%\src\lib\lib%NAME%.dll.bodged %APPVEYOR_BUILD_FOLDER%\%TARGET_ARTIFACT%
- >
sh -c "
export PATH=$HOME/bin/:$PATH
&& rm -rf %APPVEYOR_BUILD_DIR%/src/spec/*
&& ln -s %APPVEYOR_BUILD_DIR%/ ~/quicklisp/local-projects/
&& $HOME/bin/lisp %APPVEYOR_BUILD_DIR%/util/regen-spec.lisp '%ASDF_SYSTEM%' t %TARGET_ARCH%
&& cd ~/quicklisp/local-projects/%ASDF_SYSTEM%/ && zip -r spec.zip src/spec/
&& mv ~/quicklisp/local-projects/%ASDF_SYSTEM%/spec.zip %APPVEYOR_BUILD_DIR%/
"
- mv %APPVEYOR_BUILD_FOLDER%\spec.zip %APPVEYOR_BUILD_FOLDER%\%SPEC_ARCHIVE%

artifacts:
- path: $(TARGET_ARTIFACT)
name: target_artifact

- path: $(SPEC_ARCHIVE)
name: spec_archive

deploy:
provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
tag: $(APPVEYOR_REPO_TAG_NAME)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: Z5XWjDOBlCrmfz3SQAjnLKtdgI5B2b/owJhRPNWYGrI+qwVNbBc4cZiroBZReWP7
artifact: target_artifact, spec_archive
artifact: target_artifact
force_update: true
draft: false
prerelease: false
Expand Down
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ script:
-DGLFW_INSTALL=OFF \
-DGLFW_BUILD_EXAMPLES=OFF . && \
make
- rm -rf $TRAVIS_BUILD_DIR/src/spec/*
- lisp "$TRAVIS_BUILD_DIR/util/regen-spec.lisp" "$ASDF_SYSTEM" t $TARGET_ARCH
- cd $TRAVIS_BUILD_DIR/ && zip -r spec.zip src/spec/
before_deploy:
- export TARGET_FILE=$TRAVIS_BUILD_DIR/lib$NAME.$EXTENSION.bodged-$TARGET_ARCH-$TRAVIS_OS_NAME-$TRAVIS_BRANCH
Expand All @@ -77,13 +74,11 @@ before_deploy:
patchelf --set-rpath '@ORIGIN/' "$TARGET_FILE";
patchelf --set-soname "lib$NAME.$EXTENSION.bodged" "$TARGET_FILE";
fi
- export SPEC_ARCHIVE=$TARGET_FILE-spec.zip
- mv $TRAVIS_BUILD_DIR/spec.zip $SPEC_ARCHIVE
deploy:
provider: releases
api-key: $GITHUB_TOKEN
file: [$TARGET_FILE, $SPEC_ARCHIVE]
file: [$TARGET_FILE]
skip_cleanup: true
overwrite: true
on:
Expand Down

0 comments on commit f33707d

Please sign in to comment.