Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
moklidia committed Jul 13, 2023
1 parent 471b53a commit ab1a8c4
Showing 1 changed file with 41 additions and 59 deletions.
100 changes: 41 additions & 59 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- feature/237_create_portable_binaries_2
env:
RELEASE_VERSION: TEST-5
RELEASE_VERSION: TEST-6
# RELEASE_VERSION: ${GITHUB_REF#refs/*/}
jobs:
make:
Expand All @@ -16,80 +16,62 @@ jobs:
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
# - name: 'Install Linux dependencies'
# if: matrix.os == 'ubuntu-20.04'
# run: |
# sudo apt update
# sudo apt install -y build-essential squashfs-tools curl gcc make bison
# - name: 'Install MacOs dependencies'
# if: matrix.os == 'macos-latest'
# run: |
# brew install squashfs
# - uses: actions/checkout@v2
# - name: 'Set up Ruby'
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: '3.0.3'
# - name: 'Create Linux Bin'
# if: matrix.os == 'ubuntu-20.04'
# run: |
# wget https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc
# chmod +x ./rubyc
# ./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# - name: 'Create Darwin Bin'
# if: matrix.os == 'macos-latest'
# run: |
# wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
# chmod +x ./rubyc
# ./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
# - name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# path: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# - name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
# path: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
- name: Create Test File
run: echo hello > world.txt
- name: 'Install Linux dependencies'
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt update
sudo apt install -y build-essential squashfs-tools curl gcc make bison
- name: 'Install MacOs dependencies'
if: matrix.os == 'macos-latest'
run: |
brew install squashfs
- uses: actions/checkout@v2
- name: 'Set up Ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.3'
- name: 'Create Linux Bin'
if: matrix.os == 'ubuntu-20.04'
run: |
wget https://github.com/pmq20/ruby-packer/releases/download/linux-x64/rubyc
chmod +x ./rubyc
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
- name: 'Create Darwin Bin'
if: matrix.os == 'macos-latest'
run: |
wget https://github.com/pmq20/ruby-packer/releases/download/darwin-x64/rubyc
chmod +x ./rubyc
./rubyc --openssl-dir=/etc/ssl ./uffizzi --output=uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
path: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: world
path: world.txt
name: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
path: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
create_release:
runs-on: ubuntu-latest
needs:
- make
steps:
# - name: Download Linux Bin
# uses: actions/download-artifact@master
# with:
# name: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# path: ~/download/uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# - name: Download Macos Bin
# uses: actions/download-artifact@master
# with:
# name: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
# path: ~/download/uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
- name: Download Linux Bin
uses: actions/download-artifact@master
with:
name: world
path: ${{ github.workspace }}
- name: Check downloaded file
run: cat ${{ github.workspace }}/world.txt
name: uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
- name: Download Macos Bin
uses: actions/download-artifact@master
with:
name: uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
- name: Generate release notes
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.RELEASE_VERSION }}
name: ${{ env.RELEASE_VERSION }}
files: |
${{ github.workspace }}/world.txt
# files: |
# /home/runner/download/uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
# /home/runner/download/uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
${{ github.workspace }}/uffizzi-linux-x86_64-${{ env.RELEASE_VERSION }}
${{ github.workspace }}/uffizzi-darwin-x86_64-${{ env.RELEASE_VERSION }}
generate_release_notes: true

0 comments on commit ab1a8c4

Please sign in to comment.