Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
devops committed Oct 30, 2023
2 parents 2901c4e + 038a5d4 commit cf44941
Showing 1 changed file with 15 additions and 27 deletions.
42 changes: 15 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
macos-build:
name: 'Build MacOS Package'
runs-on: self-macos-13
runs-on: macos-13
timeout-minutes: 120
environment: production
needs: [set-release-id, source-tarball]
Expand All @@ -153,11 +153,6 @@ jobs:
submodules: recursive
path: kframework

- name: Install script dependencies
run: |
brew uninstall -f kframework/k/kframework
brew install wget
- name: Check out matching homebrew repo branch
uses: actions/checkout@v3
id: checkout
Expand Down Expand Up @@ -200,7 +195,7 @@ jobs:
git commit Formula/$PACKAGE.rb -m "Update ${PACKAGE} to ${VERSION}: part 1"
../kframework/package/macos/brew-build-and-update-to-local-bottle ${PACKAGE} ${VERSION} ${ROOT_URL}
git reset HEAD^
LOCAL_BOTTLE_NAME=$(basename $(find . -name "kframework--${VERSION}.arm64_ventura.bottle*.tar.gz"))
LOCAL_BOTTLE_NAME=$(basename $(find . -name "kframework--${VERSION}.ventura.bottle*.tar.gz"))
BOTTLE_NAME=$(echo ${LOCAL_BOTTLE_NAME#./} | sed 's!kframework--!kframework-!')
../kframework/package/macos/brew-update-to-final ${PACKAGE} ${VERSION} ${ROOT_URL}
echo "path=${LOCAL_BOTTLE_NAME}" >> ${GITHUB_OUTPUT}
Expand All @@ -213,11 +208,6 @@ jobs:
name: homebrew
path: homebrew-k

- name: Clean up Homebrew
run: |
brew uninstall -f kframework/k/kframework
brew untap -f kframework/k
- name: Delete Release
if: failure()
uses: actions/[email protected]
Expand All @@ -234,7 +224,7 @@ jobs:

macos-test:
name: 'Test MacOS Package'
runs-on: self-macos-13
runs-on: macos-13
timeout-minutes: 60
environment: production
needs: [macos-build, set-release-id]
Expand Down Expand Up @@ -273,18 +263,21 @@ jobs:
JAVA_HOME: ${{ env.JAVA_HOME_17_X64 }}
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
run: |
# The macOS public runners are prone to flakiness when running this
# test suite, so the PL-tutorial is disabled for now.
# - https://github.com/runtimeverification/k/issues/3705
cd homebrew-k-old
brew tap kframework/k "file:///$(pwd)"
brew install ${{ needs.macos-build.outputs.bottle_path }} -v
cp -R /usr/local/share/kframework/pl-tutorial ~
WD=`pwd`
cd
echo 'Starting kserver...'
spawn-kserver $WD/kserver.log
cd pl-tutorial
echo 'Testing tutorial in user environment...'
make -j`sysctl -n hw.ncpu` ${MAKE_EXTRA_ARGS}
cd ~
# cp -R /usr/local/share/kframework/pl-tutorial ~
# WD=`pwd`
# cd
# echo 'Starting kserver...'
# spawn-kserver $WD/kserver.log
# cd pl-tutorial
# echo 'Testing tutorial in user environment...'
# make -j`sysctl -n hw.ncpu` ${MAKE_EXTRA_ARGS}
# cd ~
echo 'module TEST imports BOOL endmodule' > test.k
kompile test.k --backend llvm
kompile test.k --backend haskell
Expand Down Expand Up @@ -319,11 +312,6 @@ jobs:
git remote set-url origin [email protected]:kframework/homebrew-k.git
git push origin master
- name: Clean up Homebrew
run: |
brew uninstall -f kframework/k/kframework
brew untap -f kframework/k
- name: 'Delete Release'
if: failure()
uses: actions/[email protected]
Expand Down

0 comments on commit cf44941

Please sign in to comment.