adjs #22
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: ECOZ2 Rust Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build linux | |
run: | | |
CC=gcc cargo build --verbose --release | |
cd target/release/ | |
zip "${{github.workspace}}/ecoz2rs-linux.zip" ecoz2 | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ecoz2rs-linux.zip | |
path: "${{github.workspace}}/ecoz2rs-linux.zip" | |
build_macos: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build macos | |
run: | | |
CC=gcc-14 cargo build --verbose --release | |
cd target/release/ | |
zip "${{github.workspace}}/ecoz2rs-macos.zip" ecoz2 | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: ecoz2rs-macos.zip | |
path: "${{github.workspace}}/ecoz2rs-macos.zip" | |
release: | |
needs: [build_linux, build_macos] | |
runs-on: macos-latest | |
steps: | |
- name: Get linux release | |
uses: actions/download-artifact@v2 | |
with: | |
name: ecoz2rs-linux.zip | |
- name: Get macos release | |
uses: actions/download-artifact@v2 | |
with: | |
name: ecoz2rs-macos.zip | |
- name: Complete release | |
uses: sondreb/action-release@master | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
draft: true | |
prerelease: true | |
body: 'This is a pre-release' | |
name: "Draft Release ${{ github.ref }}" | |
tag: ${{ github.ref }} | |
files: "ecoz2rs-linux.zip;ecoz2rs-macos.zip" |