Skip to content

Commit

Permalink
fix(ci): ⏪ Revert to linux only build
Browse files Browse the repository at this point in the history
  • Loading branch information
SpiralOutDotEu committed Nov 2, 2023
1 parent c264677 commit 4d58bb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,24 @@ on:
jobs:
release:
name: Release
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ubuntu-latest
permissions:
contents: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: |
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-pc-windows-gnu
cargo install cross
cross build --target x86_64-unknown-linux-gnu --release
cross build --target x86_64-pc-windows-gnu --release
env:
CARGO_TARGET_DIR: ${{ runner.temp }}/target
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- name: Install dependencies
run: npm install
run: |
npm install
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }},
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
run: npx semantic-release
6 changes: 1 addition & 5 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ module.exports = {
"changelogFile": "CHANGELOG.md",
}],
["@semantic-release/github", {
"assets": [
{"path": "target/release/zk_whitelist", "label": "Linux binary"},
{"path": "target/release/zk_whitelist.exe", "label": "Windows binary"},
{"path": "target/release/zk_whitelist.dmg", "label": "macOS binary"}
]
"assets": "target/release/zk_whitelist"
}],
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "Cargo.toml", "Cargo.lock"],
Expand Down

0 comments on commit 4d58bb6

Please sign in to comment.