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

30 lines
768 B
YAML
Raw Normal View History

2022-11-02 16:57:15 +00:00
name: Build using Cargo
on:
push:
paths-ignore:
- "**.md"
branches:
- main
pull_request:
paths-ignore:
- "**.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
2022-11-02 16:57:15 +00:00
- uses: Swatinem/rust-cache@v2
2023-08-27 17:32:30 +00:00
- uses: rui314/setup-mold@v1
2023-07-13 00:40:10 +00:00
- name: Set up NASM
uses: ilammy/setup-nasm@v1.4.0
2022-11-02 16:57:15 +00:00
- name: Build
2023-08-27 17:32:58 +00:00
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 17:14:47 +00:00
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: piped-proxy
path: piped-proxy