-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (85 loc) · 2.73 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Release CI
on:
push:
tags:
- "v*"
permissions:
contents: write
packages: write
jobs:
build-docker:
name: Build Docker image with TORUSd daemon
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/torus-economy/torusd
tags: |
type=semver,pattern={{version}}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/386,linux/arm/v7
push: true
target: torusd-unix
tags: ${{ steps.meta.outputs.tags }}
file: Dockerfile
build-unix:
name: Build TORUS-Qt wallet for Unix systems
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install zip tool
run: sudo apt-get install zip -y
- name: Build TORUS-Qt
run: DOCKER_BUILDKIT=1 docker build --target torus-qt-unix --tag torus-qt-unix:latest .
- name: Copy artifacts
run: docker cp $(docker create --rm torus-qt-unix):/opt/TORUS-Qt TORUS-Qt
- name: Zip artifacts
run: zip torus-qt-unix.zip TORUS-Qt
- name: Create release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "torus-qt-unix.zip"
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
build-win:
name: Build TORUS-Qt wallet for Windows systems
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install zip tool
run: sudo apt-get install zip -y
- name: Build TORUS-Qt.exe
run: DOCKER_BUILDKIT=1 docker build --target torus-qt-win --tag torus-qt-win:latest .
- name: Copy artifacts
run: docker cp $(docker create --rm torus-qt-win):/opt/torus-core/release/TORUS-Qt.exe TORUS-Qt.exe
- name: Zip artifacts
run: zip torus-qt-win64.zip TORUS-Qt.exe
- name: Create release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "torus-qt-win64.zip"
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}