Skip to content

Commit

Permalink
Add rust toolchain (#51)
Browse files Browse the repository at this point in the history
* Add rust toolchain

* Build images in PRs

* Install curl

* Add some quotes

* Fix the rust installation
  • Loading branch information
twizmwazin authored Jun 24, 2024
1 parent e57b55f commit 747e7ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish-ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Publish angr ci docker image
on:
push:
branches: ["master"]
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -21,3 +22,4 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
- name: Push ci image
run: docker push angr/ci:3
if: github.event_name != 'pull_request'
4 changes: 3 additions & 1 deletion ci-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN apt-get install -y strace
RUN apt-get install -y fontconfig
RUN apt-get install -y gcc-multilib g++-multilib
RUN apt-get install -y libxkbcommon-dev libegl-dev
RUN apt-get install -y zstd
RUN apt-get install -y zstd curl
RUN bash -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y"
ENV PATH=/root/.cargo/bin:$PATH
RUN pip3 install "virtualenv<20" pygithub

# fix missing libreadline.so.7
Expand Down
2 changes: 1 addition & 1 deletion ci-image/conf/install.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cp $CONF/nose2.cfg .

python3 -mvirtualenv --python=`which python3` ./virtualenv
source ./virtualenv/bin/activate
pip install -U 'pip==21.3.1' 'setuptools<64'
pip install -U 'pip==21.3.1' 'setuptools<64' maturin

pip install --requirement ./requirements.txt --no-cache --src ./src --no-build-isolation
pip freeze > freeze.txt
Expand Down

0 comments on commit 747e7ff

Please sign in to comment.