Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cestef committed Mar 7, 2024
0 parents commit 2d8c5dd
Show file tree
Hide file tree
Showing 7 changed files with 30,846 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tests

on:
push:
branches:
- main
pull_request:

defaults:
run:
shell: bash

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
version: [0.1.8]
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup rustreleaser
uses: ./
with:
version: ${{ matrix.version }}

- name: Capture rustreleaser version installed
run: |
export RR_VERSION=$( rr --version )
echo 'RR_VERSION_INSTALLED<<EOF' >> $GITHUB_ENV
rr --version >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Verify
shell: python
env:
RR_VERSION_EXPECTED: ${{ matrix.version }}
run: |
import sys, os
sys.exit(
int(not os.environ["RR_VERSION_EXPECTED"] in os.environ["RR_VERSION_INSTALLED"])
)
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
pnpm-lock.yaml
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: setup-rustreleaser
description: Setup rustreleaser
inputs:
version:
description: Version to install
required: false
default: 0.1.8
runs:
using: node20
main: dist/index.js
Loading

0 comments on commit 2d8c5dd

Please sign in to comment.