Skip to content

Commit

Permalink
Use macos-latest-xlarge as runner arch
Browse files Browse the repository at this point in the history
  • Loading branch information
milouk committed Sep 29, 2024
1 parent a7d799d commit aedbbe7
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,34 @@ jobs:
build-release:
name: Build artifacts
runs-on: ubuntu-latest
container:
image: docker.io/batonogov/pyinstaller-linux:latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Build package
run: |
echo "Creating Linux artifact"
apt-get update && apt-get install -y zip
pip install -r ./requirements.txt
pyinstaller --onefile ./src/app.py
mkdir -p .artie && \
cp -r ./dist/app ./assets ./config.json .artie
zip -r Artie.zip .artie ./Artie\ Scraper.sh
- name: Set up QEMU for ARM64
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Build package in ARM64 container
uses: docker://batonogov/pyinstaller-linux:latest
with:
args: |
bash -c "
apt-get update && apt-get install -y zip && \
pip install -r /workspace/requirements.txt && \
pyinstaller --onefile /workspace/src/app.py && \
mkdir -p /workspace/.artie && \
cp -r /workspace/dist/app /workspace/assets /workspace/config.json /workspace/.artie && \
cd /workspace && \
zip -r Artie.zip .artie ./Artie\ Scraper.sh
"
env:
WORKSPACE: ${{ github.workspace }}

- name: Get HEAD commit hash
id: get_commit
run: echo "::set-output name=commit_hash::$"
run: echo "::set-output name=commit_hash::$(git rev-parse HEAD)"

- name: Upload Artie.zip
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit aedbbe7

Please sign in to comment.