Installation from repo and pip and minimal usage π #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Actions Demo | |
run-name: Installation from repo and pip and minimal usage π | |
on: [push] | |
jobs: | |
Install-from-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "π The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "π§ This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "π The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | |
- name: Check out repository code | |
run: git clone https://github.com/${{ github.repository }} ${{ github.workspace }} | |
- run: echo "π‘ The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "π₯οΈ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- run: echo "π This job's status is ${{ job.status }}." | |
- name: install pip and setuptools | |
run: sudo apt-get install python3-pip python3-setuptools | |
- name: install pyFreenet locally | |
run: cd ${{ github.workspace }} && python setup.py install --user | |
Install-from-pip: | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get install python3-pip python3-setuptools | |
- run: pip install --user pyFreenet3 | |
fcpgenkey: | |
runs-on: ubuntu-latest | |
steps: | |
- run: sudo apt-get install python3-pip python3-setuptools default-jre xvfb | |
- run: git clone https://github.com/${{ github.repository }} ${{ github.workspace }} | |
- run: git clone https://github.com/freenet/browser ${{ github.workspace }}/browser | |
- run: cd ${{ github.workspace }} && python setup.py install --user | |
- run: cd ${{ github.workspace }}/browser && ./bootstrap.sh && ./configure --prefix=$HOME/.local && make install && timeout 30 xvfb-run -a $HOME/.local/bin/freenetbrowser --install || true | |
name: get a running Freenet via https://github.com/freenet/browser | |
- run: cat ~/Freenet/freenet.ini | |
- run: fcpgenkey |