Skip to content

Commit

Permalink
workflow: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Jan 23, 2024
1 parent 0c7db68 commit 751ba3d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:

jobs:
build-schemes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build unpacked
run: ./build.sh base.distr-unpacked
Expand All @@ -26,9 +26,9 @@ jobs:
- name: Install colorer
run: |
sudo apt-get -y install libicu-dev libxerces-c-dev libspdlog-dev libfmt-dev zlib1g-dev libminizip-dev
wget https://github.com/colorer/Colorer-library/releases/download/v1.2.1/colorer.x64.v1.2.1.tar.gz
wget https://github.com/colorer/Colorer-library/releases/download/v1.3.1/colorer.x64.v1.3.1.tar.gz
mkdir bin
tar -xf colorer.x64.v1.2.1.tar.gz -C ./bin
tar -xf colorer.x64.v1.3.1.tar.gz -C ./bin
- name: Test schemes
working-directory: hrc/test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/checks_pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ on:

jobs:
build-schemes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build unpacked
run: ./build.sh base.distr-unpacked
Expand All @@ -25,9 +25,9 @@ jobs:
- name: Install colorer
run: |
sudo apt-get -y install libicu-dev libxerces-c-dev libspdlog-dev libfmt-dev zlib1g-dev libminizip-dev
wget https://github.com/colorer/Colorer-library/releases/download/v1.2.1/colorer.x64.v1.2.1.tar.gz
wget https://github.com/colorer/Colorer-library/releases/download/v1.3.1/colorer.x64.v1.3.1.tar.gz
mkdir bin
tar -xf colorer.x64.v1.2.1.tar.gz -C ./bin
tar -xf colorer.x64.v1.3.1.tar.gz -C ./bin
- name: Test schemes
working-directory: hrc/test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:

jobs:
build-schemes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' }}

steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get version
shell: bash
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/taged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,25 @@ on:

jobs:
build-schemes:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Get version
id: get_version
uses: battila7/get-version-action@v2
uses: actions/checkout@v4

- name: Build packed schemes
working-directory: ${{runner.workspace}}/Colorer-schemes
run: ./build.sh base.distr-packed -Dpostfix=${{ steps.get_version.outputs.version }}
run: ./build.sh base.distr-packed -Dpostfix=${{ github.ref_name }}

- name: Build unpacked schemes
working-directory: ${{runner.workspace}}/Colorer-schemes
run: ./build.sh base.distr-unpacked -Dpostfix=${{ steps.get_version.outputs.version }}
run: ./build.sh base.distr-unpacked -Dpostfix=${{ github.ref_name }}

- name: Build allpacked schemes
working-directory: ${{runner.workspace}}/Colorer-schemes
run: ./build.sh base.distr-allpacked -Dpostfix=${{ steps.get_version.outputs.version }}
run: ./build.sh base.distr-allpacked -Dpostfix=${{ github.ref_name }}

- name: Create release
run: gh release create ${{ steps.get_version.outputs.version }} ./build/*.zip -t "Colorer base ${{ steps.get_version.outputs.version }}" -n "new version"
run: gh release create ${{ github.ref_name }} ./build/*.zip -t "Colorer base ${{ github.ref_name }}" -n "new version"
env:
GITHUB_TOKEN: ${{secrets.PACKAGES_GITHUB_TOKEN}}

0 comments on commit 751ba3d

Please sign in to comment.