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

Trim dependencies and test more distros #157

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
52e4c59
Trim dependencies and test more distros
twizmwazin Jun 16, 2022
8531ee0
Also trim homebrew deps
twizmwazin Jun 16, 2022
f81735a
Fix container definition for CI
twizmwazin Jun 16, 2022
0c968fd
Fix matrix usage
twizmwazin Jun 16, 2022
88b495a
Fix depedendency installation issues
twizmwazin Jun 16, 2022
22cfc5a
Fix typo
twizmwazin Jun 16, 2022
bffac83
Try to figure out how [ works
twizmwazin Jun 16, 2022
9019666
Fix another typo
twizmwazin Jun 17, 2022
fcceed5
Improve distro detection
twizmwazin Jul 5, 2022
48c9359
Specify python3 when checking python platform
twizmwazin Jul 5, 2022
5ccd1b2
Check ID and ID_LIKE
twizmwazin Jul 6, 2022
7a1bd0e
Fix dectection of arch linux
twizmwazin Jul 6, 2022
6c81c7a
Disable opensuse until tar issue can be sorted
twizmwazin Jul 6, 2022
ceb5ede
Use pip_install function to install dependencies
twizmwazin Jul 6, 2022
f534d55
Add -v
twizmwazin Jul 6, 2022
14c2d68
Move clone and install functions to top of script
twizmwazin Jul 7, 2022
66b146f
Replace pip3 with pip
twizmwazin Sep 8, 2022
dc06c93
Update ubuntu versions
twizmwazin Sep 8, 2022
07b591e
Add pip package to dependencies
twizmwazin Sep 12, 2022
80dc52d
Use [[ in arch detection
twizmwazin Sep 12, 2022
2ca770f
Remove almalinux 8
twizmwazin Sep 12, 2022
1388667
Use virtualenvwrapper for linux
twizmwazin Sep 12, 2022
f1e92bb
Revert "Use virtualenvwrapper for linux"
twizmwazin Sep 12, 2022
0f1fdf2
Use venv for linux
twizmwazin Sep 12, 2022
f3fc6eb
Specify to run with bash
twizmwazin Sep 12, 2022
353d21a
Fix comparison
twizmwazin Sep 12, 2022
81a23e8
Use . instead of source
twizmwazin Sep 12, 2022
473247e
Fix remote detection not working if git is not already installed
twizmwazin Jan 10, 2023
3993401
Fix conditional
twizmwazin Jan 11, 2023
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
65 changes: 58 additions & 7 deletions .github/workflows/setup-sh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@ on:
- ".github/workflows/setup-sh.yml"

jobs:
build:
build_windows:
strategy:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- macos-12
- windows-2022
python:
- "3.8"
- "3.9"
Expand All @@ -28,18 +26,71 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Run setup.ps1
if: matrix.os == 'windows-2022'
run: .\setup.ps1
- name: Test angr import
run: python -c "import angr; print('angr imports!')"

build_macos:
strategy:
matrix:
os:
- macos-12
python:
- "3.8"
- "3.9"
- "3.10"
fail-fast: false
name: Run setup on ${{ matrix.os }} with python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Upgrade bash
if: matrix.os == 'macos-12'
run: brew install bash

- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Run setup.sh
run: ./setup.sh -i -u
run: ./setup.sh -i -u -v
- name: Test angr import
run: python -c "import angr; print('angr imports!')"

build_linux:
strategy:
matrix:
container:
- ubuntu:focal
- ubuntu:jammy
- archlinux:latest
- fedora:36
- almalinux:9
# OpenSUSE is disabled because they don't include tar
# - opensuse/leap:15
# - opensuse/tumbleweed:latest
fail-fast: false
name: Run setup on ${{ matrix.container }}
runs-on: ubuntu-latest
container:
image: ${{ matrix.container }}
steps:
- uses: actions/checkout@v3
- name: Install python3
shell: bash
run: |
# Don't try to cover everything, just what's in CI
. /etc/os-release
[ "$ID" = "ubuntu" ] && apt-get update; apt-get install -y python3-venv
[ "$ID" = "arch" ] && pacman -Syu python
[ "$ID" = "fedora" ] && dnf install python3
[ "$ID" = "almalinux" ] && yum install python3
python3 -m venv venv
- name: Run setup.sh
run: . venv/bin/activate && ./setup.sh -i -u
- name: Test angr import
run: python -c "import angr; print('angr imports!')"

Expand Down
Loading