mirror of
https://github.com/pimalaya/himalaya.git
synced 2024-12-09 21:18:39 +03:00
remove custom-release workflow
workflow_dispatch requires read and write access to the repo, which is not suitable for public usage. Also restricted pre-release workflow to master branch.
This commit is contained in:
58
.github/workflows/custom-release.yml
vendored
58
.github/workflows/custom-release.yml
vendored
@@ -1,58 +0,0 @@
|
||||
name: custom-release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
target:
|
||||
type: choice
|
||||
description: Target
|
||||
required: true
|
||||
options:
|
||||
- aarch64-apple-darwin
|
||||
- aarch64-unknown-linux-musl
|
||||
- armv6l-unknown-linux-musleabihf
|
||||
- armv7l-unknown-linux-musleabihf
|
||||
- i686-unknown-linux-musl
|
||||
# FIXME
|
||||
# - i686-w64-mingw32
|
||||
- x86_64-apple-darwin
|
||||
- x86_64-unknown-linux-musl
|
||||
- x86_64-w64-mingw32
|
||||
defaultFeatures:
|
||||
type: boolean
|
||||
description: Enable default cargo features
|
||||
default: true
|
||||
features:
|
||||
type: string
|
||||
description: Cargo features (comma-separated)
|
||||
|
||||
jobs:
|
||||
custom-release:
|
||||
runs-on: ${{ inputs.target == 'x86_64-apple-darwin' && 'macos-13' || inputs.target == 'aarch64-apple-darwin' && 'macos-14' || 'ubuntu-latest' }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
# TODO: nix_path: nixpkgs=channel:nixos-unstable
|
||||
nix_path: nixpkgs=https://github.com/soywod/nixpkgs/archive/master.tar.gz
|
||||
enable_kvm: true
|
||||
- name: Cache Nix store
|
||||
uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: soywod
|
||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||
extraPullNames: nix-community
|
||||
- name: Build custom release
|
||||
run: |
|
||||
nix-build \
|
||||
--arg crossPkgs 'import <nixpkgs> { crossSystem = { config = "${{ inputs.target }}"; isStatic = true; }; }' \
|
||||
--arg fenix 'import (fetchTarball "https://github.com/soywod/fenix/archive/main.tar.gz") { }' \
|
||||
--arg defaultFeatures ${{ inputs.defaultFeatures }} \
|
||||
--argstr features ${{ inputs.features }}
|
||||
- name: Upload custom release
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: himalaya-${{ inputs.target }}
|
||||
path: result/bin/himalaya*
|
||||
2
.github/workflows/pre-release.yml
vendored
2
.github/workflows/pre-release.yml
vendored
@@ -1,7 +1,9 @@
|
||||
name: pre-release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branch: master
|
||||
|
||||
jobs:
|
||||
pre-release:
|
||||
|
||||
Reference in New Issue
Block a user