Skip to content

Commit

Permalink
fix(ci): build binaries for musl (ReVanced#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK authored Jul 9, 2022
1 parent 88b50de commit aae1b07
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches: [main, dev]

pull_request:

workflow_dispatch:

env:
CARGO_TERM_COLOR: always

Expand All @@ -25,6 +29,7 @@ jobs:
components: clippy

- name: Setup Node.js
if: github.event_name != 'pull_request'
uses: actions/setup-node@v2
with:
node-version: "lts/*"
Expand All @@ -42,18 +47,27 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
args: --release
args: --release --target=x86_64-unknown-linux-musl
use-cross: true

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --no-deps -- -D warnings

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: revanced-discord-bot
path: target/x86_64-unknown-linux-musl/release/revanced-discord-bot

- name: Setup semantic-release
if: github.event_name != 'pull_request'
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D

- name: Release
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}],
["@semantic-release/github", {
"assets": [{
"path": "target/release/revanced-discord-bot"
"path": "target/x86_64-unknown-linux-musl/release/revanced-discord-bot"
}]
}]
]
Expand Down

0 comments on commit aae1b07

Please sign in to comment.