Skip to content

Commit

Permalink
Re-enable MacOS release (#579)
Browse files Browse the repository at this point in the history
* INSTALL, Jenkinsfile: re-enable MacOS build

* Jenkinsfile: correctly grab brew bottle name
  • Loading branch information
ehildenb authored and Dwight Guth committed Nov 27, 2019
1 parent ca16867 commit 4ba280d
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 52 deletions.
10 changes: 10 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Current supported systems are:

- Ubuntu Bionic (18.04)
- Debian Buster
- Mac OS X Mojave

Downloading Packages
--------------------
Expand All @@ -24,6 +25,15 @@ Install the package with (`X.Y.Z` is version number, `ID` is platform identifier
sudo apt install ./kevm_X.Y.Z_amd64_ID.deb
```

### Mac OS X Mojave

Tap the `kframework/k` bottle then install the downloaded `kevm` bottle:

```sh
brew tap kframework/k "file:///$(pwd)"
brew install "kevm--X.Y.Z.mojave.bottle.tar.gz" -v
```

Building Packages
-----------------

Expand Down
107 changes: 55 additions & 52 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -364,49 +364,49 @@ pipeline {
}
}
}
// stage('Build Homebrew Bottle') {
// agent {
// label 'anka'
// }
// steps {
// unstash 'src-kevm'
// dir('homebrew-k') {
// git url: '[email protected]:kframework/homebrew-k.git'
// sh '''
// ${WORKSPACE}/deps/k/src/main/scripts/brew-build-bottle
// '''
// stash name: "mojave-kevm", includes: "kevm--${env.VERSION}.mojave.bottle*.tar.gz"
// }
// }
// }
// stage('Test Homebrew Bottle') {
// agent {
// label 'anka'
// }
// steps {
// dir('homebrew-k') {
// git url: '[email protected]:kframework/homebrew-k.git', branch: 'brew-release-kevm'
// unstash "mojave-kevm"
// sh '''
// ${WORKSPACE}/deps/k/src/main/scripts/brew-install-bottle
// '''
// }
// dir("kevm-${env.VERSION}") {
// checkout scm
// sh '''
// brew install node@10 netcat
// export PATH="/usr/local/opt/node@10/bin:$PATH"
// npm install -g npx
// make test-interactive-firefly
// '''
// }
// dir('homebrew-k') {
// sh '''
// ${WORKSPACE}/deps/k/src/main/scripts/brew-update-to-final
// '''
// }
// }
// }
stage('Build Homebrew Bottle') {
agent {
label 'anka'
}
steps {
unstash 'src-kevm'
dir('homebrew-k') {
git url: '[email protected]:kframework/homebrew-k.git'
sh '''
${WORKSPACE}/deps/k/src/main/scripts/brew-build-bottle
'''
stash name: "mojave-kevm", includes: "kevm--${env.VERSION}.mojave.bottle*.tar.gz"
}
}
}
stage('Test Homebrew Bottle') {
agent {
label 'anka'
}
steps {
dir('homebrew-k') {
git url: '[email protected]:kframework/homebrew-k.git', branch: 'brew-release-kevm'
unstash "mojave-kevm"
sh '''
${WORKSPACE}/deps/k/src/main/scripts/brew-install-bottle
'''
}
dir("kevm-${env.VERSION}") {
checkout scm
sh '''
brew install node@10 netcat
export PATH="/usr/local/opt/node@10/bin:$PATH"
npm install -g npx
make test-interactive-firefly
'''
}
dir('homebrew-k') {
sh '''
${WORKSPACE}/deps/k/src/main/scripts/brew-update-to-final
'''
}
}
}
// stage('Build Arch Package') {
// agent {
// dockerfile {
Expand Down Expand Up @@ -470,9 +470,9 @@ pipeline {
dir("buster") {
unstash 'buster-kevm'
}
// dir("mojave") {
// unstash 'mojave-kevm'
// }
dir("mojave") {
unstash 'mojave-kevm'
}
// dir("arch") {
// unstash 'arch-kevm'
// }
Expand All @@ -481,13 +481,16 @@ pipeline {
make release.md KEVM_RELEASE_TAG=${release_tag}
mv bionic/kevm_${VERSION}_amd64.deb bionic/kevm_${VERSION}_amd64_bionic.deb
mv buster/kevm_${VERSION}_amd64.deb buster/kevm_${VERSION}_amd64_buster.deb
hub release create \
--attach kevm-${VERSION}-src.tar.gz"#Source tar.gz" \
--attach bionic/kevm_${VERSION}_amd64_bionic.deb"#Ubuntu Bionic (18.04) Package" \
--attach buster/kevm_${VERSION}_amd64_buster.deb"#Debian Buster (10) Package" \
LOCAL_BOTTLE_NAME=$(echo mojave/kevm--${VERSION}.mojave.bottle*.tar.gz)
BOTTLE_NAME=$(echo $LOCAL_BOTTLE_NAME | sed 's!kevm--!kevm-!')
mv $LOCAL_BOTTLE_NAME $BOTTLE_NAME
hub release create \
--attach kevm-${VERSION}-src.tar.gz"#Source tar.gz" \
--attach bionic/kevm_${VERSION}_amd64_bionic.deb"#Ubuntu Bionic (18.04) Package" \
--attach buster/kevm_${VERSION}_amd64_buster.deb"#Debian Buster (10) Package" \
--attach $BOTTLE_NAME"#Mac OS X Homebrew Bottle" \
--file "release.md" "${release_tag}"
# --attach arch/kevm-git-${VERSION}-1-x86_64.pkg.tar.xz"#Arch Package" \
# --attach mojave/kevm--${VERSION}.mojave.bottle*.tar.gz"#Mac OS X Homebrew Bottle" \
# --attach arch/kevm-git-${VERSION}-1-x86_64.pkg.tar.xz"#Arch Package" \
'''
}
}
Expand Down

0 comments on commit 4ba280d

Please sign in to comment.