This repository has been archived by the owner on Nov 10, 2024. It is now read-only.
Update os-lib to 0.11.2 #266
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: CI | |
on: | |
push: | |
tags: [ '*' ] | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/scala-cli-setup@main | |
with: | |
power: true | |
- run: make test | |
format: | |
name: Check Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/scala-cli-setup@main | |
with: | |
power: true | |
- run: make format-check | |
check-and-upload-native-build-mac: | |
name: Check Graal Build (Mac) | |
runs-on: macos-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/scala-cli-setup@main | |
with: | |
power: true | |
- run: make package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: skan-x86_64-apple-darwin | |
path: ./out/skan | |
if-no-files-found: error | |
retention-days: 5 | |
check-and-upload-native-build-linux: | |
name: Check Graal Build (Linux) | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/scala-cli-setup@main | |
with: | |
power: true | |
- run: make package | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: skan-x86_64-linux | |
path: ./out/skan | |
if-no-files-found: error | |
retention-days: 5 | |
release: | |
runs-on: ubuntu-latest | |
needs: [ test, check-and-upload-native-build-linux, check-and-upload-native-build-mac] | |
if: "startsWith(github.ref, 'refs/tags/')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Prep releases | |
run: bash .github/prepare-release.sh | |
- name: Upload-to-release | |
uses: softprops/action-gh-release@v2 | |
with: | |
generate_release_notes: true | |
fail_on_unmatched_files: true | |
files: releases/* | |
token: ${{ secrets.RELEASE_TOKEN }} |