dart pub upgrade --major-versions --tighten
#431
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Create Release | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [main] | |
types: [closed] | |
jobs: | |
create_release: | |
# See: .github/workflows/create_release_pr.yaml | |
if: ${{ github.head_ref == 'prepare_for_release' && github.event.pull_request.merged == true }} | |
env: | |
OUTPUT_DIR: libedax_output | |
PUBLISH_DIR: dst | |
RELEASE_DESCRIPTION_TXT_FILE: release_description.txt | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
include: | |
- os: ubuntu-latest | |
libedax_build_command: make libbuild ARCH=x64 COMP=gcc OS=linux | |
- os: windows-latest | |
libedax_build_command: make libbuild ARCH=x64 COMP=gcc OS=windows | |
- os: macos-latest | |
libedax_build_command: make universal_osx_libbuild | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dart-lang/setup-dart@v1 | |
- name: inject current version | |
shell: bash # for windows | |
run: echo "CURRENT_VERSION=$(dart pub deps --style compact | grep "libedax4dart" | cut -c 14-)" >> $GITHUB_ENV | |
- name: build libedax | |
shell: bash | |
env: | |
dst: ${{ env.OUTPUT_DIR }} | |
libedax_build_command: ${{ matrix.libedax_build_command }} | |
run: ./scripts/build_libedax.sh | |
- name: output build info | |
shell: bash | |
run: .github/scripts/output_build_info.sh ${{ env.OUTPUT_DIR }} | |
- name: compress files (Windows) | |
if: runner.os == 'Windows' | |
run: mkdir -p ${{ env.PUBLISH_DIR }} && powershell Compress-Archive -Path ${{ env.OUTPUT_DIR }} -DestinationPath ${{ env.PUBLISH_DIR }}/${{ runner.os }}.zip | |
- name: compress files (Linux, MacOS) | |
if: runner.os == 'macOS' || runner.os == 'Linux' | |
run: mkdir -p ${{ env.PUBLISH_DIR }} && zip -r ${{ env.PUBLISH_DIR }}/${{ runner.os }}.zip ${{ env.OUTPUT_DIR }} | |
- uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
with: | |
tag_name: ${{ env.CURRENT_VERSION }} | |
files: ${{ env.PUBLISH_DIR }}/${{ runner.os }}.zip | |
generate_release_notes: true |