topic/rust #2

Merged
ian merged 6 commits from topic/rust into main 2023-11-20 13:10:23 +00:00
1 changed files with 18 additions and 33 deletions
Showing only changes of commit 0b686e86d9 - Show all commits

View File

@ -1,42 +1,27 @@
name: Keep Running name: Keep Running
run-name: ${{ gitea.actor }} is running spotify.local CI pipeline 🚀 run-name: ${{ gitea.actor }} is running the Keep Running build process 🚀
on: [push] on: [push]
concurrency: 'true' concurrency: 'true'
jobs: jobs:
Build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: zip
- target: x86_64-unknown-linux-musl
archive: tar.gz tar.xz tar.zst
- target: x86_64-apple-darwin
archive: zip
steps: steps:
- name: Checkout - uses: actions/checkout@master
uses: actions/checkout@v4 - name: Compile and release
- name: Install dependencies uses: rust-build/rust-build.action@v1.4.4
run: npm ci env:
- name: Building project GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build
- name: Creating Linux Archive
uses: vimtor/action-zip@v1.1
with: with:
files: out/kr-linux RUSTTARGET: ${{ matrix.target }}
dest: linux.zip ARCHIVE_TYPES: ${{ matrix.archive }}
- name: Upload Linux Archive
uses: actions/upload-artifact@v3
with:
path: linux.zip
- name: Creating MacOS Archive
uses: vimtor/action-zip@v1.1
with:
files: out/kr-macos
dest: macos.zip
- name: Upload MacOS Archive
uses: actions/upload-artifact@v3
with:
path: macos.zip
- name: Creating Windows Archive
uses: vimtor/action-zip@v1.1
with:
files: out/kr-win.exe
dest: windows.zip
- name: Upload Windows Archive
uses: actions/upload-artifact@v3
with:
path: windows.zip