Skip to content

Commit ce6e6e6

Browse files
authored
Merge pull request #24 from alephium/sequence-build
Sequence build
2 parents cd617b9 + 9740787 commit ce6e6e6

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

.github/workflows/build.yml

+19-18
Original file line numberDiff line numberDiff line change
@@ -7,91 +7,92 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v2
10-
10+
1111
- uses: Jimver/[email protected]
1212
id: cuda-toolkit
1313
with:
1414
cuda: '11.4.0'
1515
sub-packages: '["nvcc"]'
1616
method: 'network'
17-
17+
1818
- name: Install dependencies
1919
run: sudo apt-get install -y libuv1-dev
20-
20+
2121
- name: Build miner
2222
run: make linux-gpu
23-
23+
2424
- name: Rename miner
2525
run: mv bin/gpu-miner bin/gpu-miner_$(git rev-parse --short "$GITHUB_SHA")
26-
26+
2727
- uses: actions/upload-artifact@v2
2828
with:
2929
name: linux-binary
3030
path: bin/gpu-miner_*
31-
31+
3232
build-windows-artifact:
3333
name: build-windows-artifact
3434
runs-on: windows-latest
35+
needs: build-linux-artifact
3536
steps:
3637
- uses: actions/checkout@v2
3738
with:
3839
submodules: recursive
39-
40+
4041
- uses: ilammy/msvc-dev-cmd@v1
4142
with:
4243
arch: amd64
43-
44+
4445
- uses: Jimver/[email protected]
4546
id: cuda-toolkit
4647
with:
4748
cuda: '11.4.0'
4849
sub-packages: '["nvcc", "cudart"]'
4950
method: 'network'
50-
51+
5152
- uses: actions/cache@v2
5253
id: cache_libuv
5354
with:
5455
path: libuv/build
5556
key: ${{ runner.os }}-${{ hashFiles('libuv/CMakeLists.txt') }} # Hash based on cmake defs
56-
57+
5758
- name: Build Libuv
5859
if: steps.cache_libuv.outputs.cache-hit != 'true'
5960
run: |
6061
mkdir libuv/build
61-
cd libuv/build
62+
cd libuv/build
6263
cmake .. -DBUILD_TESTING=OFF
63-
cmake --build . --config Release
64+
cmake --build . --config Release
6465
cd $GITHUB_WORKSPACE
65-
66+
6667
- name: Build Miner
6768
run: |
6869
nvcc --std c++11 -O3 --ptxas-options -v --x cu src/main.cu -Ilibuv/include -Llibuv/build/Release -lmsvcrt -luser32 -liphlpapi -luserenv -lws2_32 -luv_a -o bin/gpu-miner
69-
70+
7071
- name: Rename Miner
7172
run: |
7273
$fileName = git rev-parse --short HEAD
7374
cp bin/gpu-miner.exe "bin/gpu-miner_$fileName.exe"
74-
75+
7576
- uses: actions/upload-artifact@v2
7677
with:
7778
name: windows-binary
7879
path: bin/gpu-miner_*.exe
79-
80+
8081
- name: Get linux artifact (Release prep)
8182
if: startsWith(github.ref, 'refs/tags/')
8283
uses: actions/download-artifact@v2
8384
with:
8485
name: linux-binary
8586
path: bin/
86-
87+
8788
- name: Get the version (Release prep)
8889
if: startsWith(github.ref, 'refs/tags/')
8990
id: get_version
9091
run: |
9192
version=$(echo ${GITHUB_REF/refs\/tags\//} | cut -c 2-)
9293
echo ::set-output name=VERSION::$version
9394
shell: bash
94-
95+
9596
- name: Generate miners checksums (Release prep)
9697
if: startsWith(github.ref, 'refs/tags/')
9798
run: |

0 commit comments

Comments
 (0)