[ci] Downgrade action-gh-release
-> 0.1.13
#117
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: build | |
on: | |
push: | |
tags: | |
- "*.*.*" | |
paths-ignore: | |
- README.md | |
- examples/** | |
- logo.png | |
- logo_readme.png | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- windows-latest | |
# - ubuntu-20.04 | |
# - macos-latest | |
arch: [x64] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout latest sources | |
uses: actions/checkout@v3 | |
with: | |
path: . | |
- name: Cache vcpkg packages | |
uses: actions/cache@v3 | |
with: | |
path: ${{ runner.temp }}/vcpkg | |
key: ${{ runner.os }}-vcpkg-v3 | |
- name: Setup Re | |
uses: osdeverr/actions-setup-re@v3 | |
with: | |
re-version: <=0.6.8 # The latest stable Re release available for all major platforms | |
- name: Check Re version | |
run: re version | |
- name: Check argmax | |
if: runner.os == 'Linux' | |
run: getconf ARG_MAX | |
- name: Set up VsDevCmd | |
if: runner.os == 'Windows' | |
uses: egor-tensin/vs-shell@v2 | |
with: | |
arch: ${{ matrix.arch }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Run the bootstrap script | |
run: re do deploy --configuration release --arch ${{ matrix.arch }} --re-dev-deploy-path ${{ runner.temp }}/re-latest-build --vcpkg-root-path ${{ runner.temp }}/vcpkg | |
#env: | |
# RE_GITHUB_FORCE_SSH: 1 | |
- name: Create CI artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 're-${{ github.ref_name }}-${{ runner.os }}-${{ matrix.arch }}-${{ github.run_id }}' | |
path: '${{ runner.temp }}/re-latest-build/' | |
- name: Archive release files | |
uses: thedoctor0/[email protected] | |
with: | |
type: zip | |
filename: '${{ runner.temp }}/re-latest-build/re-${{ github.ref_name }}-${{ runner.os }}-${{ matrix.arch }}.zip' | |
directory: '${{ runner.temp }}/re-latest-build/' | |
- name: Create release | |
uses: softprops/[email protected] | |
with: | |
files: '${{ runner.temp }}/re-latest-build/re-${{ github.ref_name }}-${{ runner.os }}-${{ matrix.arch }}.zip' | |
- name: Create package definition | |
if: runner.os == 'Linux' | |
run: | | |
mkdir -p .debpkg/usr/local/lib/re/${{ github.ref_name }}/bin | |
mkdir -p .debpkg/usr/local/bin | |
mkdir -p .debpkg/debian | |
cp -p -R ${{ runner.temp }}/re-latest-build/* .debpkg/usr/local/lib/re/${{ github.ref_name }}/bin | |
echo "/usr/local/lib/re/${{ github.ref_name }}/bin/re /usr/local/bin/re-${{ github.ref_name }}" > .debpkg/debian/rebs.links | |
- id: create-debian-package | |
name: Create Debian package | |
if: runner.os == 'Linux' | |
uses: jiro4989/build-deb-action@v2 | |
with: | |
package: rebs | |
desc: A modern build system for the future | |
package_root: .debpkg | |
maintainer: osdeverr | |
version: ${{ github.ref_name }} | |
- name: Upload Debian package as a CI artifact | |
if: runner.os == 'Linux' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: re-package-${{ github.ref_name }}-${{ runner.os }}-amd64-${{ github.run_id }} | |
path: ${{ steps.create-debian-package.outputs.file_name }} | |
- name: Create package release | |
if: runner.os == 'Linux' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ steps.create-debian-package.outputs.file_name }} |