Try building release with docker

This commit is contained in:
zonyitoo
2020-08-07 00:31:42 +08:00
parent 902611df7a
commit 36d67effb5
+33
View File
@@ -0,0 +1,33 @@
name: Build Releases
on:
push:
tags:
- v*
env:
CARGO_TERM_COLOR: always
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker images
run: |
cd build
docker build -t shadowsocks-rust:x86_64-pc-windows-gnu -f Dockerfile.x86_64-pc-windows-gnu .
docker build -t shadowsocks-rust:x86_64-unknown-linux-musl -f Dockerfile.x86_64-unknown-linux-musl .
docker build -t shadowsocks-rust:x86_64-unknown-linux-gnu -f Dockerfile.x86_64-unknown-linux-gnu .
docker build -t shadowsocks-rust:arm-unknown-linux-gnueabihf -f Dockerfile.arm-unknown-linux-gnueabihf .
docker build -t shadowsocks-rust:aarch64-unknown-linux-gnu -f Dockerfile.aarch64-unknown-linux-gnu .
- name: Install cross
run: cargo install cross
- name: Build releases
timeout-minutes: 120
run: |
cd build
./build-release
- uses: actions/upload-artifact@v2
with:
name: releases
path: build/release/*