v0.4.32 #38
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: Publish Asherah-Cobhan | |
on: | |
release: | |
types: [published] # Trigger when release is created | |
jobs: | |
build-linux: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
container: | |
image: golang:1.20.12-bullseye | |
options: --ulimit core=-1 --ulimit memlock=-1:-1 | |
steps: | |
- uses: actions/checkout@v2 | |
# Fix "fatal: detected dubious ownership in repository" | |
- name: Change owner of container working directory | |
run: chown root:root . | |
- name: Configure packages | |
run: scripts/ubuntu-configure.sh | |
- name: Build for Linux x64 | |
run: scripts/ubuntu-build-x64.sh | |
- name: Build for Linux arm64 | |
run: scripts/ubuntu-build-arm64.sh | |
- name: Publish Linux sha256sums | |
run: scripts/generate-sha256.sh > output/SHA256SUMS | |
- name: Upload Artifacts | |
run: scripts/upload-artifacts.sh output/libasherah-x64.h output/libasherah-x64.so output/libasherah-x64.a output/libasherah-x64-archive.h output/libasherah-arm64.h output/libasherah-arm64.so output/libasherah-arm64.a output/libasherah-arm64-archive.h output/SHA256SUMS | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-macos: | |
timeout-minutes: 15 | |
runs-on: 'macos-latest' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.20.12 | |
- name: Build for MacOS | |
run: scripts/macos-build.sh | |
- name: Publish MacOS sha256sums | |
run: scripts/generate-sha256.sh > output/SHA256SUMS-darwin | |
- name: Upload Artifacts | |
run: scripts/upload-artifacts.sh output/libasherah-darwin-x64.h output/libasherah-x64.dylib output/libasherah-darwin-arm64.h output/libasherah-arm64.dylib output/libasherah-darwin-arm64.a output/libasherah-darwin-x64.a output/libasherah-darwin-x64-archive.h output/libasherah-darwin-arm64-archive.h output/SHA256SUMS-darwin | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |