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
run-name: ${{ gitea.actor }} is running spotify.local CI pipeline 🚀
run-name: ${{ gitea.actor }} is running the Keep Running build process 🚀
on: [push]
concurrency: 'true'
jobs:
Build:
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:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Building project
run: npm run build
- name: Creating Linux Archive
uses: vimtor/action-zip@v1.1
- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: out/kr-linux
dest: linux.zip
- 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
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}