From 1a193f3ec3bbf4fd8475b9f96875b5224af9e90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Thu, 28 Nov 2024 20:38:14 +0100 Subject: [PATCH] make use of re-usable pre-releases pimalaya/nix workflow --- .github/workflows/pre-release.yml | 62 ------------------------------ .github/workflows/pre-releases.yml | 13 +++++++ 2 files changed, 13 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/pre-release.yml create mode 100644 .github/workflows/pre-releases.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml deleted file mode 100644 index a4e042a6..00000000 --- a/.github/workflows/pre-release.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: pre-release - -on: - workflow_dispatch: - push: - branch: master - -jobs: - pre-release: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - include: - - target: aarch64-darwin - os: macos-14 - - target: aarch64-linux - os: ubuntu-latest - - target: armv6l-linux - os: ubuntu-latest - - target: armv7l-linux - os: ubuntu-latest - - target: i686-linux - os: ubuntu-latest - # FIXME - # - target: i686-windows - # os: ubuntu-latest - - target: x86_64-darwin - os: macos-13 - - target: x86_64-linux - os: ubuntu-latest - - target: x86_64-windows - os: 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 - extra_nix_config: experimental-features = nix-command flakes - - name: Cache Nix store - uses: cachix/cachix-action@v15 - with: - name: soywod - authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - extraPullNames: nix-community - - name: Build release - run: nix build .#cross-${{ matrix.target }} - - name: Upload release - uses: actions/upload-artifact@v4 - with: - name: himalaya-${{ matrix.target }} - path: result/bin/himalaya* - - name: Upload share folder - uses: actions/upload-artifact@v4 - if: ${{ matrix.target == 'x86_64-linux' }} - with: - name: share - path: result/share diff --git a/.github/workflows/pre-releases.yml b/.github/workflows/pre-releases.yml new file mode 100644 index 00000000..eef49be8 --- /dev/null +++ b/.github/workflows/pre-releases.yml @@ -0,0 +1,13 @@ +name: Pre-releases + +on: + workflow_dispatch: + push: + branch: master + +jobs: + build: + uses: pimalaya/nix/.github/workflows/pre-releases.yml@master + secrets: inherit + with: + project: himalaya