Skip to content

Commit

Permalink
chore(ci): run checks and release on just linux/amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
snormore committed Jun 17, 2024
1 parent dd088f8 commit aeeaef5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 24 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
workflow_call:
push:
branches:
- '**'
# - '**'
- none

env:
CARGO_TERM_COLOR: always
Expand All @@ -27,11 +28,13 @@ jobs:
strategy:
matrix:
include:
- name: Linux
runner: ubuntu-latest
# runner: namespace-profile-lightning-builder-ubuntu-amd64
- name: MacOS
runner: macos-latest
- name: Linux x86_64
# runner: ubuntu-latest
runner: namespace-profile-lightning-builder-ubuntu-amd64
# - name: Linux aarch64
# runner: namespace-profile-lightning-builder-ubuntu-arm64
# - name: MacOS
# runner: macos-latest
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
Expand All @@ -55,12 +58,15 @@ jobs:
matrix:
include:
- name: Linux x86_64
runner: ubuntu-latest
# runner: namespace-profile-lightning-builder-ubuntu-amd64
# runner: ubuntu-latest
runner: namespace-profile-lightning-builder-ubuntu-amd64
target: x86_64-unknown-linux-gnu
- name: MacOS aarch64
runner: macos-latest
target: aarch64-apple-darwin
# - name: Linux aarch64
# runner: namespace-profile-lightning-builder-ubuntu-arm64
# target: aarch64-unknown-linux-gnu
# - name: MacOS aarch64
# runner: macos-latest
# target: aarch64-apple-darwin
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
Expand Down Expand Up @@ -88,9 +94,12 @@ jobs:
# runner: ubuntu-latest
runner: namespace-profile-lightning-builder-ubuntu-amd64
target: x86_64-unknown-linux-gnu
- name: MacOS aarch64
runner: macos-latest
target: aarch64-apple-darwin
# - name: Linux aarch64
# runner: namespace-profile-lightning-builder-ubuntu-arm64
# target: aarch64-unknown-linux-gnu
# - name: MacOS aarch64
# runner: macos-latest
# target: aarch64-apple-darwin
fail-fast: false
runs-on: ${{ matrix.runner }}
steps:
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- dev
- stable
- s/ci

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -48,16 +49,16 @@ jobs:
- name: Cargo build
run: cargo build --bin lightning-node --all-features --release --target ${{ matrix.target }}

- name: Create tarball
run: |
REPO_NAME=$(basename $GITHUB_REPOSITORY)
SHORT_SHA=$(git rev-parse --short=7 ${{ github.sha }})
RELEASE_NAME="${{ github.ref_name }}-${SHORT_SHA}"
TAR_NAME="${REPO_NAME}-${RELEASE_NAME}-${{ matrix.target }}.tar.gz"
mkdir -p out
cd out
tar -czvf $TAR_NAME -C ../target/${{ matrix.target }}/release lightning-node
shell: bash
# - name: Create tarball
# run: |
# REPO_NAME=$(basename $GITHUB_REPOSITORY)
# SHORT_SHA=$(git rev-parse --short=7 ${{ github.sha }})
# RELEASE_NAME="${{ github.ref_name }}-${SHORT_SHA}"
# TAR_NAME="${REPO_NAME}-${RELEASE_NAME}-${{ matrix.target }}.tar.gz"
# mkdir -p out
# cd out
# tar -czvf $TAR_NAME -C ../target/${{ matrix.target }}/release lightning-node
# shell: bash

# - name: Upload artifact
# uses: actions/upload-artifact@v4
Expand Down

0 comments on commit aeeaef5

Please sign in to comment.