Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release workflow #58

Merged
merged 6 commits into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading