mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-04-29 22:14:28 +02:00
fix(ci): build binaries for musl (#9)
This commit is contained in:
parent
88b50def73
commit
aae1b07edf
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -4,6 +4,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [main, dev]
|
branches: [main, dev]
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
@ -25,6 +29,7 @@ jobs:
|
|||||||
components: clippy
|
components: clippy
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: "lts/*"
|
node-version: "lts/*"
|
||||||
@ -42,7 +47,8 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release
|
args: --release --target=x86_64-unknown-linux-musl
|
||||||
|
use-cross: true
|
||||||
|
|
||||||
- name: cargo clippy
|
- name: cargo clippy
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
@ -50,10 +56,18 @@ jobs:
|
|||||||
command: clippy
|
command: clippy
|
||||||
args: --no-deps -- -D warnings
|
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
|
- name: Setup semantic-release
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
|
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: npx semantic-release
|
run: npx semantic-release
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
}],
|
}],
|
||||||
["@semantic-release/github", {
|
["@semantic-release/github", {
|
||||||
"assets": [{
|
"assets": [{
|
||||||
"path": "target/release/revanced-discord-bot"
|
"path": "target/x86_64-unknown-linux-musl/release/revanced-discord-bot"
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user