Skip to content

Commit

Permalink
Change Github Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0xk1f0 committed Oct 27, 2023
1 parent ac59da2 commit fc518ef
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 21 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Upload

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Build dynamic linked
run: cargo build --release --verbose
- name: Build static linked
run: RUSTFLAGS='-C target-feature=-crt-static' cargo build --target=x86_64-unknown-linux-gnu --release --verbose
- name: Build musl static linked
run: cargo build --target=x86_64-unknown-linux-musl --release --verbose
- name: Rename binaries
run: |
mv target/x86_64-unknown-linux-gnu/release/rwpspread target/release/rwpspread_gnu
mv target/x86_64-unknown-linux-musl/release/rwpspread target/release/rwpspread_musl
run: mv oldfile.txt newfile.txt
- name: Upload built binaries
uses: actions/upload-artifact@v3
with:
name: release-binaries
path: |
target/release/rwpspread
target/x86_64-unknown-linux-gnu/release/rwpspread_gnu
target/x86_64-unknown-linux-musl/release/rwpspread_musl
20 changes: 0 additions & 20 deletions .github/workflows/rust.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# rwpspread

[![Rust](https://github.com/0xk1f0/rwpspread/actions/workflows/rust.yml/badge.svg)](https://github.com/0xk1f0/rwpspread/actions/workflows/rust.yml)
[![Pipeline](https://github.com/0xk1f0/rwpspread/actions/workflows/build.yml/badge.svg)](https://github.com/0xk1f0/rwpspread/actions/workflows/build.yml)
![AUR](https://img.shields.io/aur/version/rwpspread)

Wallpaper Utility written in Rust
Expand Down

0 comments on commit fc518ef

Please sign in to comment.