mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-11-06 16:14:11 +00:00
Try building release with docker
This commit is contained in:
@@ -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/*
|
||||
Reference in New Issue
Block a user