Skip to content

log_test: restore the original config #36

log_test: restore the original config

log_test: restore the original config #36

Workflow file for this run

---
name: Release
# yamllint disable-line rule:truthy
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
arch: [amd64, arm64]
os: [linux, darwin]
exclude:
# excludes darwin-arm64 for now
- os: darwin
arch: arm64
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: setup
run: |
sudo apt update
sudo apt install -y qemu-utils qemu-system-x86
- name: Determine ref
env:
REF: ${{ github.ref }}
run: echo "TAG=$(echo "$REF" | sed -e 's#^.*/##')" >> "$GITHUB_ENV"
- name: Create a GitHub release
id: create-release
uses: actions/github-script@v7
with:
result-encoding: string
script: |
console.log(context)
tag = '${{ env.TAG }}'
// first create a release -- it is OK if that fails,
// since it means the release is already there
try {
const raw = (await github.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: tag,
name: 'Release ' + tag,
prerelease: true,
})).data
console.log(raw)
} catch (e) {}
// get the release ID
const release = (await github.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: tag,
})).data
return release.upload_url
- name: Build project
run: |
make OS=${{ matrix.os }} ARCH=${{ matrix.arch }} build
make OS=${{ matrix.os }} ARCH=${{ matrix.arch }} build-tests
tar -zcvf eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz -C ./ ./eden ./README.md dist docs tests
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: startsWith(github.ref, 'refs/tags/')
with:
upload_url: ${{ steps.create-release.outputs.result }}
files: ./eden.${{ matrix.os }}.${{ matrix.arch }}.tar.gz