Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build armv7 artifact #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ jobs:
7z x WpdPack.zip
cp WpdPack/Lib/x64/Packet.lib Packet.lib
if: matrix.os == 'windows-latest'
- name: Download cross
run: cargo install cross
if: matrix.os == 'ubuntu-latest'
- name: Build arm
run: cross build --release --target=armv7-unknown-linux-gnueabihf --verbose
if: matrix.os == 'ubuntu-latest'
- name: Build
run: cargo build --release --verbose
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- name: Upload a build artifact
Expand All @@ -34,6 +40,12 @@ jobs:
name: pcap2socks-latest-${{ runner.os }}-amd64
path: ./target/release/pcap2socks
if: matrix.os != 'windows-latest'
- name: Upload a armv7 artifact
uses: actions/upload-artifact@v2
with:
name: pcap2socks-latest-armv7
path: ./target/armv7-unknown-linux-gnueabihf/release/pcap2socks
if: matrix.os == 'ubuntu-latest'
- name: Update a build artifact (Windows)
uses: actions/upload-artifact@v2
with:
Expand Down