Skip to content

Download x86 binaries when running on arm #77

Download x86 binaries when running on arm

Download x86 binaries when running on arm #77

Workflow file for this run

name: "Build Actions"
on:
push:
branches:
- "actions-sources"
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: "Save Git information"
id: git
run: |
echo "gitName=$(git log --format='%an' HEAD^!)" >> $GITHUB_OUTPUT
echo "gitEmail=$(git log --format='%ae' HEAD^!)" >> $GITHUB_OUTPUT
echo "gitSha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: "npm"
- name: "Install NPM dependencies"
run: npm ci
- name: "Build actions"
run: ./build.sh
- uses: actions/upload-artifact@v3
with:
name: actions
path: build-output
outputs:
gitName: ${{ steps.git.outputs.gitName }}
gitEmail: ${{ steps.git.outputs.gitEmail }}
gitSha: ${{ steps.git.outputs.gitSha }}
gitUrl: ${{ steps.git.outputs.gitUrl }}
publish:
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
steps:
- uses: actions/download-artifact@v3
with:
name: actions
- name: "Commit"
env:
GIT_NAME: ${{ needs.build.outputs.gitName }}
GIT_EMAIL: ${{ needs.build.outputs.gitEmail }}
GIT_SHA: ${{ needs.build.outputs.gitSha }}
TAG_NAME: actions
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git init
git remote add origin https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY
git checkout -b temporary
git add .
git config user.name "$GIT_NAME"
git config user.email "$GIT_EMAIL"
git commit -m "Build of $GIT_SHA"
git tag $TAG_NAME
git push origin +refs/tags/$TAG_NAME