Skip to content

Commit

Permalink
Update release workflow (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitbuda authored Sep 1, 2023
1 parent 4f813e7 commit 95e18f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ jobs:
uses: actions/cache@v1
with:
path: ~/memgraph
key: cache-memgraph-v${{ matrix.mgversion }}-{{ matrix.platform }}-community-installer-v3
key: cache-memgraph-v${{ matrix.mgversion }}-${{ matrix.platform }}-community-installer-v3
- name: Download Memgraph
if: steps.cache-memgraph-community.outputs.cache-hit != 'true'
run: |
mkdir ~/memgraph
MEMGRAPH_PACKAGE_NAME="memgraph_${{ matrix.mgversion }}-1_amd64.deb"
echo "MEMGRAPH_PACKAGE_NAME=${MEMGRAPH_PACKAGE_NAME}" >> $GITHUB_ENV
curl -L https://download.memgraph.com/memgraph/v${{ matrix.mgversion }}/${{ matrix.platform }}/${MEMGRAPH_PACKAGE_NAME} > ~/memgraph/${MEMGRAPH_PACKAGE_NAME}
curl -L https://download.memgraph.com/memgraph/v${{ matrix.mgversion }}/${{ matrix.platform }}/${MEMGRAPH_PACKAGE_NAME} > ~/memgraph/memgraph.deb
- name: Install system dependencies
run: |
sudo apt install -y libpython${{ matrix.python_version }} python3-pip python3-setuptools
sudo pip3 install --upgrade networkx pytest pyopenssl sphinx
sudo ln -s /dev/null /etc/systemd/system/memgraph.service # Prevents Memgraph from starting.
sudo dpkg -i ~/memgraph/${MEMGRAPH_PACKAGE_NAME}
sudo dpkg -i ~/memgraph/memgraph.deb
- uses: actions/checkout@v2
with:
submodules: true
Expand Down Expand Up @@ -79,7 +78,8 @@ jobs:
- '3.7'
- '3.10'
env:
MG_VERSION: 2.10.1
# TODO(gitbuda): Fix "The file cannot be accessed by the system... rocksdb_durability"
MG_VERSION: 2.8.0
steps:
- uses: actions/checkout@v2
with:
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Release

on:
workflow_dispatch:
inputs:
Expand All @@ -18,18 +17,16 @@ on:
description: 'The expected version of OpenSSL 3, e.g.: 3.0.3.'
required: true
type: string

env:
PYMGCLIENT_OVERRIDE_VERSION: "${{ github.event.inputs.version }}"

jobs:
build_and_test_ubuntu:
strategy:
matrix:
platform: [ubuntu-20.04]
python_version: ['3.8']
mgversion:
- 2.2.0
include:
- {platform: 'ubuntu-20.04', python_version: '3.8', mgversion: '2.10.1'}
- {platform: 'ubuntu-22.04', python_version: '3.10', mgversion: '2.10.1'}
runs-on: ${{ matrix.platform }}
steps:
- name: Install system dependencies (Ubuntu 20.04)
Expand All @@ -40,7 +37,6 @@ jobs:
curl -L https://download.memgraph.com/memgraph/v${{matrix.mgversion}}/ubuntu-20.04/memgraph_${{matrix.mgversion}}-1_amd64.deb > ~/memgraph/memgraph.deb
sudo ln -s /dev/null /etc/systemd/system/memgraph.service # Prevents Memgraph from starting.
sudo dpkg -i ~/memgraph/memgraph.deb
- uses: actions/checkout@v2
with:
submodules: true
Expand Down Expand Up @@ -79,8 +75,9 @@ jobs:
- '3.8'
- '3.9'
- '3.10'
# TODO(gitbuda): Fix "The file cannot be accessed by the system... rocksdb_durability"
mgversion:
- 2.2.0
- 2.8.0
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 95e18f3

Please sign in to comment.