2022-11-02 22:27:15 +05:30
|
|
|
name: Build using Cargo
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-23 01:03:16 +05:30
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
2022-11-02 22:27:15 +05:30
|
|
|
- uses: Swatinem/rust-cache@v2
|
2023-08-27 23:02:30 +05:30
|
|
|
- uses: rui314/setup-mold@v1
|
2023-07-13 06:10:10 +05:30
|
|
|
- name: Set up NASM
|
|
|
|
uses: ilammy/setup-nasm@v1.4.0
|
2022-11-02 22:27:15 +05:30
|
|
|
- name: Build
|
2023-08-27 23:02:58 +05:30
|
|
|
run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu
|
|
|
|
- run: mv target/x86_64-unknown-linux-gnu/release/piped-proxy piped-proxy
|
2023-08-27 22:44:47 +05:30
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: piped-proxy
|
|
|
|
path: piped-proxy
|