mirror of
https://github.com/NinjaCheetah/rustii.git
synced 2025-06-06 15:31:02 -04:00
Create rust.yml
This commit is contained in:
parent
62f6e6c0ec
commit
2df9a180be
31
.github/workflows/rust.yml
vendored
Normal file
31
.github/workflows/rust.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Build rustii
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# Not sure if this is the best choice, but I'm building in release mode to produce more effective nightly binaries.
|
||||||
|
- name: Build rustii
|
||||||
|
run: cargo build --verbose --release
|
||||||
|
- name: Package rustii for Upload
|
||||||
|
run: |
|
||||||
|
mv target/release/rustii ~/rustii
|
||||||
|
cd ~
|
||||||
|
tar cvf rustii.tar rustii
|
||||||
|
- name: Upload rustii
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
path: ~/rustii.tar
|
||||||
|
name: rustii-Linux-bin
|
Loading…
x
Reference in New Issue
Block a user