all repos — min @ a68d0afc533dee70a0f59ee69926b678f54eede7

A small but practical concatenative programming language.

added Package job (based on normal CI) + added support for macOS
drkameleon yaniszaf@gmail.com
Wed, 20 Jan 2021 19:23:46 +0100
commit

a68d0afc533dee70a0f59ee69926b678f54eede7

parent

4ca098896ea0eb175c2c6c94a167343d3e883ff2

1 files changed, 68 insertions(+), 0 deletions(-)

jump to
M .github/workflows/release.yml.github/workflows/release.yml

@@ -0,0 +1,68 @@

+name: Release + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "ci" + package: + name: "Package" + + # The type of runner that the job will run on + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + + env: + CHOOSENIM_CHOOSE_VERSION: stable + CHOOSENIM_NO_ANALYTICS: 1 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - name: "Cancel similar actions in progress" + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ github.token }} + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: install musl-gcc + run: sudo apt-get install -y musl-tools + if: matrix.os == 'ubuntu-latest' + + - name: Update $PATH + run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH + + - name: Install Nim + run: | + curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh + sh init.sh -y + + - name: Install nifty + run: nimble install -y nifty + + - name: Install deps + run: nifty install + + - name: Build (Linux) + run: nim c -d:release -d:ssl --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --cpu:amd64 --os:linux -o:min min + if: matrix.os == 'ubuntu-latest' + + - name: Build (MacOS) + run: nim c -d:release -d:ssl -o:min min + if: matrix.os == 'macos-latest' + +