piped-proxy/.github/workflows/build.yml

30 lines
725 B
YAML
Raw Normal View History

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:12:39 +05:30
- uses: actions/checkout@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.5.1
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@v4
2023-08-27 22:44:47 +05:30
with:
name: piped-proxy
path: piped-proxy