Skip to content

Commit

Permalink
update gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Apr 16, 2024
1 parent b4b971a commit d3ed800
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: Build CLI 🧪

jobs:
build:
name: "Build CLI for Windows and Linux"
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -33,7 +34,6 @@ jobs:
- name: Install Dependencies 🔨
run: |
sudo apt install mingw-w64
mkdir bin/
- name: Windows build
run: |
Expand Down Expand Up @@ -63,3 +63,41 @@ jobs:
name: linux-x64
path: |
bin/linux/x64/elys
buildMacOS:
needs: build
name: "Build CLI for Mac OS"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
nim_version:
- '2.0.2'
env:
TIMEOUT_EXIT_STATUS: 124
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Cache nimble
id: cache-nimble
uses: actions/cache@v4
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}

- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim_version }}

- name: Mac build
run: |
cd src/
nim c -d:danger -d:strip --passC:-flto --passL:-flto --out:../bin/mac/x64/elys.app elys
- uses: actions/upload-artifact@v4
with:
name: macos-x64
path: |
bin/mac/x64/elys.app

0 comments on commit d3ed800

Please sign in to comment.