mirror of
https://github.com/nushell/nushell.git
synced 2025-01-13 09:48:30 +01:00
updated to include less and nushell licenses (#2085)
This commit is contained in:
parent
0522023d4c
commit
2dd28c2909
50
.github/workflows/release.yml
vendored
50
.github/workflows/release.yml
vendored
@ -11,31 +11,39 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install libxcb
|
- name: Install libxcb
|
||||||
run: sudo apt-get install libxcb-composite0-dev
|
run: sudo apt-get install libxcb-composite0-dev
|
||||||
|
|
||||||
- name: Set up cargo
|
- name: Set up cargo
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all --features=stable
|
args: --release --all --features=stable
|
||||||
|
|
||||||
- name: Create output directory
|
- name: Create output directory
|
||||||
run: mkdir output
|
run: mkdir output
|
||||||
|
|
||||||
- name: Copy files to output
|
- name: Copy files to output
|
||||||
run: |
|
run: |
|
||||||
cp target/release/nu target/release/nu_plugin_* output/
|
cp target/release/nu target/release/nu_plugin_* output/
|
||||||
cp README.build.txt output/README.txt
|
cp README.build.txt output/README.txt
|
||||||
|
cp LICENSE output/LICENSE
|
||||||
rm output/*.d
|
rm output/*.d
|
||||||
rm output/nu_plugin_core_*
|
rm output/nu_plugin_core_*
|
||||||
rm output/nu_plugin_stable_*
|
rm output/nu_plugin_stable_*
|
||||||
|
|
||||||
# Note: If OpenSSL changes, this path will need to be updated
|
# Note: If OpenSSL changes, this path will need to be updated
|
||||||
- name: Copy OpenSSL to output
|
- name: Copy OpenSSL to output
|
||||||
run: cp /usr/lib/x86_64-linux-gnu/libssl.so.1.1 output/
|
run: cp /usr/lib/x86_64-linux-gnu/libssl.so.1.1 output/
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -48,26 +56,32 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up cargo
|
- name: Set up cargo
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all --features=stable
|
args: --release --all --features=stable
|
||||||
|
|
||||||
- name: Create output directory
|
- name: Create output directory
|
||||||
run: mkdir output
|
run: mkdir output
|
||||||
|
|
||||||
- name: Copy files to output
|
- name: Copy files to output
|
||||||
run: |
|
run: |
|
||||||
cp target/release/nu target/release/nu_plugin_* output/
|
cp target/release/nu target/release/nu_plugin_* output/
|
||||||
cp README.build.txt output/README.txt
|
cp README.build.txt output/README.txt
|
||||||
|
cp LICENSE output/LICENSE
|
||||||
rm output/*.d
|
rm output/*.d
|
||||||
rm output/nu_plugin_core_*
|
rm output/nu_plugin_core_*
|
||||||
rm output/nu_plugin_stable_*
|
rm output/nu_plugin_stable_*
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -80,29 +94,40 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up cargo
|
- name: Set up cargo
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Add cargo-wix subcommand
|
- name: Add cargo-wix subcommand
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: install
|
command: install
|
||||||
args: cargo-wix
|
args: cargo-wix
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all --features=stable
|
args: --release --all --features=stable
|
||||||
|
|
||||||
- name: Create output directory
|
- name: Create output directory
|
||||||
run: mkdir output
|
run: mkdir output
|
||||||
|
|
||||||
- name: Download Less Binary
|
- name: Download Less Binary
|
||||||
run: Invoke-WebRequest -Uri "https://github.com/jftuga/less-Windows/releases/download/less-v562.1/less.exe" -OutFile "target\release\less.exe"
|
run: Invoke-WebRequest -Uri "https://github.com/jftuga/less-Windows/releases/download/less-v562.0/less.exe" -OutFile "target\release\less.exe"
|
||||||
|
|
||||||
|
- name: Download Less License
|
||||||
|
run: Invoke-WebRequest -Uri "https://github.com/jftuga/less-Windows/blob/master/LICENSE" -OutFile "target\release\LICENSE-for-less.txt"
|
||||||
|
|
||||||
- name: Copy files to output
|
- name: Copy files to output
|
||||||
run: |
|
run: |
|
||||||
cp target\release\nu.exe output\
|
cp target\release\nu.exe output\
|
||||||
|
cp LICENSE output\
|
||||||
|
cp target\release\LICENSE-for-less.txt output\
|
||||||
rm target\release\nu_plugin_core_*.exe
|
rm target\release\nu_plugin_core_*.exe
|
||||||
rm target\release\nu_plugin_stable_*.exe
|
rm target\release\nu_plugin_stable_*.exe
|
||||||
cp target\release\nu_plugin_*.exe output\
|
cp target\release\nu_plugin_*.exe output\
|
||||||
@ -111,16 +136,19 @@ jobs:
|
|||||||
# Note: If the version of `less.exe` needs to be changed, update this URL
|
# Note: If the version of `less.exe` needs to be changed, update this URL
|
||||||
# Similarly, if `less.exe` is checked into the repo, copy from the local path here
|
# Similarly, if `less.exe` is checked into the repo, copy from the local path here
|
||||||
# moved this stuff down to create wix after we download less
|
# moved this stuff down to create wix after we download less
|
||||||
|
|
||||||
- name: Create msi with wix
|
- name: Create msi with wix
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: wix
|
command: wix
|
||||||
args: --no-build --nocapture --output target\wix\nushell-windows.msi
|
args: --no-build --nocapture --output target\wix\nushell-windows.msi
|
||||||
|
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: windows-installer
|
name: windows-installer
|
||||||
path: target\wix\nushell-windows.msi
|
path: target\wix\nushell-windows.msi
|
||||||
|
|
||||||
- name: Upload zip
|
- name: Upload zip
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
@ -137,6 +165,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Determine Release Info
|
- name: Determine Release Info
|
||||||
id: info
|
id: info
|
||||||
env:
|
env:
|
||||||
@ -152,6 +181,7 @@ jobs:
|
|||||||
echo "::set-output name=macosdir::nu_${MAJOR}_${MINOR}_${PATCH}_macOS"
|
echo "::set-output name=macosdir::nu_${MAJOR}_${MINOR}_${PATCH}_macOS"
|
||||||
echo "::set-output name=windowsdir::nu_${MAJOR}_${MINOR}_${PATCH}_windows"
|
echo "::set-output name=windowsdir::nu_${MAJOR}_${MINOR}_${PATCH}_windows"
|
||||||
echo "::set-output name=innerdir::nushell-${VERSION}"
|
echo "::set-output name=innerdir::nushell-${VERSION}"
|
||||||
|
|
||||||
- name: Create Release Draft
|
- name: Create Release Draft
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
@ -161,19 +191,24 @@ jobs:
|
|||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: ${{ steps.info.outputs.version }} Release
|
release_name: ${{ steps.info.outputs.version }} Release
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
- name: Create Linux Directory
|
- name: Create Linux Directory
|
||||||
run: mkdir -p ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
run: mkdir -p ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Download Linux Artifacts
|
- name: Download Linux Artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: linux
|
name: linux
|
||||||
path: ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
path: ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Restore Linux File Modes
|
- name: Restore Linux File Modes
|
||||||
run: |
|
run: |
|
||||||
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
||||||
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/libssl*
|
chmod 755 ${{ steps.info.outputs.linuxdir }}/${{ steps.info.outputs.innerdir }}/libssl*
|
||||||
|
|
||||||
- name: Create Linux tarball
|
- name: Create Linux tarball
|
||||||
run: tar -zcvf ${{ steps.info.outputs.linuxdir }}.tar.gz ${{ steps.info.outputs.linuxdir }}
|
run: tar -zcvf ${{ steps.info.outputs.linuxdir }}.tar.gz ${{ steps.info.outputs.linuxdir }}
|
||||||
|
|
||||||
- name: Upload Linux Artifact
|
- name: Upload Linux Artifact
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@ -183,17 +218,22 @@ jobs:
|
|||||||
asset_path: ./${{ steps.info.outputs.linuxdir }}.tar.gz
|
asset_path: ./${{ steps.info.outputs.linuxdir }}.tar.gz
|
||||||
asset_name: ${{ steps.info.outputs.linuxdir }}.tar.gz
|
asset_name: ${{ steps.info.outputs.linuxdir }}.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
||||||
- name: Create macOS Directory
|
- name: Create macOS Directory
|
||||||
run: mkdir -p ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
run: mkdir -p ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Download macOS Artifacts
|
- name: Download macOS Artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos
|
||||||
path: ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
path: ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Restore macOS File Modes
|
- name: Restore macOS File Modes
|
||||||
run: chmod 755 ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
run: chmod 755 ${{ steps.info.outputs.macosdir }}/${{ steps.info.outputs.innerdir }}/nu*
|
||||||
|
|
||||||
- name: Create macOS Archive
|
- name: Create macOS Archive
|
||||||
run: zip -r ${{ steps.info.outputs.macosdir }}.zip ${{ steps.info.outputs.macosdir }}
|
run: zip -r ${{ steps.info.outputs.macosdir }}.zip ${{ steps.info.outputs.macosdir }}
|
||||||
|
|
||||||
- name: Upload macOS Artifact
|
- name: Upload macOS Artifact
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@ -203,18 +243,22 @@ jobs:
|
|||||||
asset_path: ./${{ steps.info.outputs.macosdir }}.zip
|
asset_path: ./${{ steps.info.outputs.macosdir }}.zip
|
||||||
asset_name: ${{ steps.info.outputs.macosdir }}.zip
|
asset_name: ${{ steps.info.outputs.macosdir }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Create Windows Directory
|
- name: Create Windows Directory
|
||||||
run: mkdir -p ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
run: mkdir -p ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Download Windows zip
|
- name: Download Windows zip
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: windows-zip
|
name: windows-zip
|
||||||
path: ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
path: ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
# TODO: Remove Show
|
|
||||||
- name: Show Windows Artifacts
|
- name: Show Windows Artifacts
|
||||||
run: ls -la ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
run: ls -la ${{ steps.info.outputs.windowsdir }}/${{ steps.info.outputs.innerdir }}
|
||||||
|
|
||||||
- name: Create macOS Archive
|
- name: Create macOS Archive
|
||||||
run: zip -r ${{ steps.info.outputs.windowsdir }}.zip ${{ steps.info.outputs.windowsdir }}
|
run: zip -r ${{ steps.info.outputs.windowsdir }}.zip ${{ steps.info.outputs.windowsdir }}
|
||||||
|
|
||||||
- name: Upload Windows zip
|
- name: Upload Windows zip
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
@ -224,11 +268,13 @@ jobs:
|
|||||||
asset_path: ./${{ steps.info.outputs.windowsdir }}.zip
|
asset_path: ./${{ steps.info.outputs.windowsdir }}.zip
|
||||||
asset_name: ${{ steps.info.outputs.windowsdir }}.zip
|
asset_name: ${{ steps.info.outputs.windowsdir }}.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
- name: Download Windows installer
|
- name: Download Windows installer
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: windows-installer
|
name: windows-installer
|
||||||
path: ./
|
path: ./
|
||||||
|
|
||||||
- name: Upload Windows installer
|
- name: Upload Windows installer
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user